export checkoutProgressCallback
( path *C.char, completed_steps, total_steps C.size_t, handle unsafe.Pointer, )
| 125 | |
| 126 | //export checkoutProgressCallback |
| 127 | func 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, |
nothing calls this directly
no test coverage detected
searching dependent graphs…