(copts *C.git_merge_file_options, opts *MergeFileOptions)
| 516 | } |
| 517 | |
| 518 | func 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 | |
| 533 | func freeMergeFileOptions(copts *C.git_merge_file_options) { |
| 534 | if copts == nil { |
no outgoing calls
no test coverage detected
searching dependent graphs…