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

Function freeRebaseOptions

rebase.go:261–271  ·  view source on GitHub ↗
(copts *C.git_rebase_options)

Source from the content-addressed store, hash-verified

259}
260
261func freeRebaseOptions(copts *C.git_rebase_options) {
262 if copts == nil {
263 return
264 }
265 C.free(unsafe.Pointer(copts.rewrite_notes_ref))
266 freeMergeOptions(&copts.merge_options)
267 freeCheckoutOptions(&copts.checkout_options)
268 if copts.payload != nil {
269 pointerHandles.Untrack(copts.payload)
270 }
271}
272
273func mapEmptyStringToNull(ref string) *C.char {
274 if ref == "" {

Callers 3

InitRebaseMethod · 0.85
OpenRebaseMethod · 0.85
FreeMethod · 0.85

Calls 4

freeMergeOptionsFunction · 0.85
freeCheckoutOptionsFunction · 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…