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

Function populateMergeFileOptions

merge.go:518–531  ·  view source on GitHub ↗
(copts *C.git_merge_file_options, opts *MergeFileOptions)

Source from the content-addressed store, hash-verified

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)
520 if opts == nil {
521 return nil
522 }
523
524 copts.ancestor_label = C.CString(opts.AncestorLabel)
525 copts.our_label = C.CString(opts.OurLabel)
526 copts.their_label = C.CString(opts.TheirLabel)
527 copts.favor = C.git_merge_file_favor_t(opts.Favor)
528 copts.flags = C.uint32_t(opts.Flags)
529 copts.marker_size = C.ushort(opts.MarkerSize)
530 return copts
531}
532
533func freeMergeFileOptions(copts *C.git_merge_file_options) {
534 if copts == nil {

Callers 1

MergeFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…