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

Function mergeFileOptionsFromC

merge.go:507–516  ·  view source on GitHub ↗
(c C.git_merge_file_options)

Source from the content-addressed store, hash-verified

505}
506
507func mergeFileOptionsFromC(c C.git_merge_file_options) MergeFileOptions {
508 return MergeFileOptions{
509 AncestorLabel: C.GoString(c.ancestor_label),
510 OurLabel: C.GoString(c.our_label),
511 TheirLabel: C.GoString(c.their_label),
512 Favor: MergeFileFavor(c.favor),
513 Flags: MergeFileFlags(c.flags),
514 MarkerSize: uint16(c.marker_size),
515 }
516}
517
518func populateMergeFileOptions(copts *C.git_merge_file_options, opts *MergeFileOptions) *C.git_merge_file_options {
519 C.git_merge_file_options_init(copts, C.GIT_MERGE_FILE_OPTIONS_VERSION)

Callers

nothing calls this directly

Calls 2

MergeFileFavorTypeAlias · 0.85
MergeFileFlagsTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…