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

Function checkoutProgressCallback

checkout.go:127–137  ·  view source on GitHub ↗

export checkoutProgressCallback

(
	path *C.char,
	completed_steps, total_steps C.size_t,
	handle unsafe.Pointer,
)

Source from the content-addressed store, hash-verified

125
126//export checkoutProgressCallback
127func checkoutProgressCallback(
128 path *C.char,
129 completed_steps, total_steps C.size_t,
130 handle unsafe.Pointer,
131) {
132 data := pointerHandles.Get(handle).(*checkoutCallbackData)
133 if data.options.ProgressCallback == nil {
134 return
135 }
136 data.options.ProgressCallback(C.GoString(path), uint(completed_steps), uint(total_steps))
137}
138
139// populateCheckoutOptions populates the provided C-struct with the contents of
140// the provided CheckoutOptions struct. Returns copts, or nil if opts is nil,

Callers

nothing calls this directly

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…