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

Function DefaultMergeOptions

merge.go:161–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159}
160
161func DefaultMergeOptions() (MergeOptions, error) {
162 opts := C.git_merge_options{}
163
164 runtime.LockOSThread()
165 defer runtime.UnlockOSThread()
166
167 ecode := C.git_merge_options_init(&opts, C.GIT_MERGE_OPTIONS_VERSION)
168 if ecode < 0 {
169 return MergeOptions{}, MakeGitError(ecode)
170 }
171 return mergeOptionsFromC(&opts), nil
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)

Callers

nothing calls this directly

Calls 2

MakeGitErrorFunction · 0.85
mergeOptionsFromCFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…