(copts *C.git_stash_apply_options, opts *StashApplyOptions, errorTarget *error)
| 163 | } |
| 164 | |
| 165 | func populateStashApplyOptions(copts *C.git_stash_apply_options, opts *StashApplyOptions, errorTarget *error) *C.git_stash_apply_options { |
| 166 | C.git_stash_apply_options_init(copts, C.GIT_STASH_APPLY_OPTIONS_VERSION) |
| 167 | if opts == nil { |
| 168 | return nil |
| 169 | } |
| 170 | copts.flags = C.uint32_t(opts.Flags) |
| 171 | populateCheckoutOptions(&copts.checkout_options, &opts.CheckoutOptions, errorTarget) |
| 172 | if opts.ProgressCallback != nil { |
| 173 | progressData := &stashApplyProgressCallbackData{ |
| 174 | callback: opts.ProgressCallback, |
| 175 | errorTarget: errorTarget, |
| 176 | } |
| 177 | C._go_git_populate_stash_apply_callbacks(copts) |
| 178 | copts.progress_payload = pointerHandles.Track(progressData) |
| 179 | } |
| 180 | return copts |
| 181 | } |
| 182 | |
| 183 | func freeStashApplyOptions(copts *C.git_stash_apply_options) { |
| 184 | if copts == nil { |
no test coverage detected
searching dependent graphs…