(copts *C.git_cherrypick_options, opts *CherrypickOptions, errorTarget *error)
| 24 | } |
| 25 | |
| 26 | func populateCherrypickOptions(copts *C.git_cherrypick_options, opts *CherrypickOptions, errorTarget *error) *C.git_cherrypick_options { |
| 27 | C.git_cherrypick_options_init(copts, C.GIT_CHERRYPICK_OPTIONS_VERSION) |
| 28 | if opts == nil { |
| 29 | return nil |
| 30 | } |
| 31 | copts.mainline = C.uint(opts.Mainline) |
| 32 | populateMergeOptions(&copts.merge_opts, &opts.MergeOptions) |
| 33 | populateCheckoutOptions(&copts.checkout_opts, &opts.CheckoutOptions, errorTarget) |
| 34 | return copts |
| 35 | } |
| 36 | |
| 37 | func freeCherrypickOpts(copts *C.git_cherrypick_options) { |
| 38 | if copts == nil { |
no test coverage detected
searching dependent graphs…