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

Function freeCheckoutOptions

checkout.go:182–195  ·  view source on GitHub ↗
(copts *C.git_checkout_options)

Source from the content-addressed store, hash-verified

180}
181
182func freeCheckoutOptions(copts *C.git_checkout_options) {
183 if copts == nil {
184 return
185 }
186 C.free(unsafe.Pointer(copts.target_directory))
187 if copts.paths.count > 0 {
188 freeStrarray(&copts.paths)
189 }
190 if copts.notify_payload != nil {
191 pointerHandles.Untrack(copts.notify_payload)
192 } else if copts.progress_payload != nil {
193 pointerHandles.Untrack(copts.progress_payload)
194 }
195}
196
197// Updates files in the index and the working tree to match the content of
198// the commit pointed at by HEAD. opts may be nil.

Callers 11

freeRebaseOptionsFunction · 0.85
freeRevertOptionsFunction · 0.85
freeCherrypickOptsFunction · 0.85
freeStashApplyOptionsFunction · 0.85
ResetToCommitMethod · 0.85
freeCloneOptionsFunction · 0.85
MergeMethod · 0.85
CheckoutHeadMethod · 0.85
CheckoutIndexMethod · 0.85
CheckoutTreeMethod · 0.85

Calls 3

freeStrarrayFunction · 0.85
freeMethod · 0.80
UntrackMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…