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

Function populateMergeOptions

merge.go:174–185  ·  view source on GitHub ↗
(copts *C.git_merge_options, opts *MergeOptions)

Source from the content-addressed store, hash-verified

172}
173
174func populateMergeOptions(copts *C.git_merge_options, opts *MergeOptions) *C.git_merge_options {
175 C.git_merge_options_init(copts, C.GIT_MERGE_OPTIONS_VERSION)
176 if opts == nil {
177 return nil
178 }
179 copts.flags = C.uint32_t(opts.TreeFlags)
180 copts.rename_threshold = C.uint(opts.RenameThreshold)
181 copts.target_limit = C.uint(opts.TargetLimit)
182 copts.recursion_limit = C.uint(opts.RecursionLimit)
183 copts.file_favor = C.git_merge_file_favor_t(opts.FileFavor)
184 return copts
185}
186
187func freeMergeOptions(copts *C.git_merge_options) {
188}

Callers 8

populateRebaseOptionsFunction · 0.85
populateRevertOptionsFunction · 0.85
RevertCommitMethod · 0.85
CherrypickCommitMethod · 0.85
MergeMethod · 0.85
MergeCommitsMethod · 0.85
MergeTreesMethod · 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…