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

Function completionCallback

remote.go:360–373  ·  view source on GitHub ↗

export completionCallback

(errorMessage **C.char, completionType C.git_remote_completion_type, handle unsafe.Pointer)

Source from the content-addressed store, hash-verified

358
359//export completionCallback
360func completionCallback(errorMessage **C.char, completionType C.git_remote_completion_type, handle unsafe.Pointer) C.int {
361 data := pointerHandles.Get(handle).(*remoteCallbacksData)
362 if data.callbacks.CompletionCallback == nil {
363 return C.int(ErrorCodeOK)
364 }
365 err := data.callbacks.CompletionCallback(RemoteCompletion(completionType))
366 if err != nil {
367 if data.errorTarget != nil {
368 *data.errorTarget = err
369 }
370 return setCallbackError(errorMessage, err)
371 }
372 return C.int(ErrorCodeOK)
373}
374
375//export credentialsCallback
376func credentialsCallback(

Callers 1

completion_callbackFunction · 0.85

Calls 3

RemoteCompletionTypeAlias · 0.85
setCallbackErrorFunction · 0.85
GetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…