func DefaultMergeOptions() (MergeOptions, error) { opts := C.git_merge_options{} ecode := C.git_merge_init_options(&opts, C.GIT_MERGE_OPTIONS_VERSION) if ecode < 0 { return MergeOptions{}, MakeGitError(ecode) } return mergeOptionsFromC(&opts), nil }
func DefaultMergeOptions() (MergeOptions, error) { opts := C.git_merge_options{} runtime.LockOSThread() defer runtime.UnlockOSThread() ecode := C.git_merge_init_options(&opts, C.GIT_MERGE_OPTIONS_VERSION) if ecode < 0 { return MergeOptions{}, MakeGitError(ecode) } return mergeOptionsFromC(&opts), nil }