MCPcopy Create free account
hub / github.com/libgit2/git2go / populateStashApplyOptions

Function populateStashApplyOptions

stash.go:165–181  ·  view source on GitHub ↗
(copts *C.git_stash_apply_options, opts *StashApplyOptions, errorTarget *error)

Source from the content-addressed store, hash-verified

163}
164
165func 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
183func freeStashApplyOptions(copts *C.git_stash_apply_options) {
184 if copts == nil {

Callers 2

ApplyMethod · 0.85
PopMethod · 0.85

Calls 2

populateCheckoutOptionsFunction · 0.85
TrackMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…