(copts *C.git_revert_options, opts *RevertOptions, errorTarget *error)
| 16 | } |
| 17 | |
| 18 | func populateRevertOptions(copts *C.git_revert_options, opts *RevertOptions, errorTarget *error) *C.git_revert_options { |
| 19 | C.git_revert_options_init(copts, C.GIT_REVERT_OPTIONS_VERSION) |
| 20 | if opts == nil { |
| 21 | return nil |
| 22 | } |
| 23 | copts.mainline = C.uint(opts.Mainline) |
| 24 | populateMergeOptions(&copts.merge_opts, &opts.MergeOptions) |
| 25 | populateCheckoutOptions(&copts.checkout_opts, &opts.CheckoutOptions, errorTarget) |
| 26 | return copts |
| 27 | } |
| 28 | |
| 29 | func revertOptionsFromC(copts *C.git_revert_options) RevertOptions { |
| 30 | return RevertOptions{ |
no test coverage detected
searching dependent graphs…