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

Function populateRemoteCallbacks

remote.go:329–341  ·  view source on GitHub ↗
(ptr *C.git_remote_callbacks, callbacks *RemoteCallbacks, errorTarget *error)

Source from the content-addressed store, hash-verified

327}
328
329func populateRemoteCallbacks(ptr *C.git_remote_callbacks, callbacks *RemoteCallbacks, errorTarget *error) *C.git_remote_callbacks {
330 C.git_remote_init_callbacks(ptr, C.GIT_REMOTE_CALLBACKS_VERSION)
331 if callbacks == nil {
332 return ptr
333 }
334 C._go_git_populate_remote_callbacks(ptr)
335 data := &remoteCallbacksData{
336 callbacks: callbacks,
337 errorTarget: errorTarget,
338 }
339 ptr.payload = pointerHandles.Track(data)
340 return ptr
341}
342
343//export sidebandProgressCallback
344func sidebandProgressCallback(errorMessage **C.char, _str *C.char, _len C.int, handle unsafe.Pointer) C.int {

Callers 6

NewWritePackMethod · 0.85
populateFetchOptionsFunction · 0.85
populatePushOptionsFunction · 0.85
ConnectMethod · 0.85
PruneMethod · 0.85
NewIndexerFunction · 0.85

Calls 1

TrackMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…