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

Function freeCloneOptions

clone.go:120–133  ·  view source on GitHub ↗
(copts *C.git_clone_options)

Source from the content-addressed store, hash-verified

118}
119
120func freeCloneOptions(copts *C.git_clone_options) {
121 if copts == nil {
122 return
123 }
124
125 freeCheckoutOptions(&copts.checkout_opts)
126 freeFetchOptions(&copts.fetch_opts)
127
128 if copts.remote_cb_payload != nil {
129 pointerHandles.Untrack(copts.remote_cb_payload)
130 }
131
132 C.free(unsafe.Pointer(copts.checkout_branch))
133}

Callers 1

CloneFunction · 0.85

Calls 4

freeCheckoutOptionsFunction · 0.85
freeFetchOptionsFunction · 0.85
UntrackMethod · 0.80
freeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…