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

Function updateTipsCallback

remote.go:424–446  ·  view source on GitHub ↗

export updateTipsCallback

(
	errorMessage **C.char,
	_refname *C.char,
	_a *C.git_oid,
	_b *C.git_oid,
	handle unsafe.Pointer,
)

Source from the content-addressed store, hash-verified

422
423//export updateTipsCallback
424func updateTipsCallback(
425 errorMessage **C.char,
426 _refname *C.char,
427 _a *C.git_oid,
428 _b *C.git_oid,
429 handle unsafe.Pointer,
430) C.int {
431 data := pointerHandles.Get(handle).(*remoteCallbacksData)
432 if data.callbacks.UpdateTipsCallback == nil {
433 return C.int(ErrorCodeOK)
434 }
435 refname := C.GoString(_refname)
436 a := newOidFromC(_a)
437 b := newOidFromC(_b)
438 err := data.callbacks.UpdateTipsCallback(refname, a, b)
439 if err != nil {
440 if data.errorTarget != nil {
441 *data.errorTarget = err
442 }
443 return setCallbackError(errorMessage, err)
444 }
445 return C.int(ErrorCodeOK)
446}
447
448//export certificateCheckCallback
449func certificateCheckCallback(

Callers 1

update_tips_callbackFunction · 0.85

Calls 3

newOidFromCFunction · 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…