MCPcopy Create free account
hub / github.com/libgit2/git2go / _go_git_merge_file

Function _go_git_merge_file

wrapper.c:390–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390int _go_git_merge_file(
391 git_merge_file_result* out,
392 char* ancestorContents,
393 size_t ancestorLen,
394 char* ancestorPath,
395 unsigned int ancestorMode,
396 char* oursContents,
397 size_t oursLen,
398 char* oursPath,
399 unsigned int oursMode,
400 char* theirsContents,
401 size_t theirsLen,
402 char* theirsPath,
403 unsigned int theirsMode,
404 git_merge_file_options* copts)
405{
406 git_merge_file_input ancestor = GIT_MERGE_FILE_INPUT_INIT;
407 git_merge_file_input ours = GIT_MERGE_FILE_INPUT_INIT;
408 git_merge_file_input theirs = GIT_MERGE_FILE_INPUT_INIT;
409
410 ancestor.ptr = ancestorContents;
411 ancestor.size = ancestorLen;
412 ancestor.path = ancestorPath;
413 ancestor.mode = ancestorMode;
414
415 ours.ptr = oursContents;
416 ours.size = oursLen;
417 ours.path = oursPath;
418 ours.mode = oursMode;
419
420 theirs.ptr = theirsContents;
421 theirs.size = theirsLen;
422 theirs.path = theirsPath;
423 theirs.mode = theirsMode;
424
425 return git_merge_file(out, &ancestor, &ours, &theirs, copts);
426}
427
428void _go_git_populate_stash_apply_callbacks(git_stash_apply_options *opts)
429{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…