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

Method Get

handles.go:58–68  ·  view source on GitHub ↗

Get retrieves the pointer from the given handle

(handle unsafe.Pointer)

Source from the content-addressed store, hash-verified

56
57// Get retrieves the pointer from the given handle
58func (v *HandleList) Get(handle unsafe.Pointer) interface{} {
59 v.RLock()
60 defer v.RUnlock()
61
62 ptr, ok := v.handles[handle]
63 if !ok {
64 panic(fmt.Sprintf("invalid pointer handle: %p", handle))
65 }
66
67 return ptr
68}

Callers 15

commitCreateCallbackFunction · 0.80
indexMatchedPathCallbackFunction · 0.80
treeWalkCallbackFunction · 0.80
diffForEachFileCallbackFunction · 0.80
diffForEachHunkCallbackFunction · 0.80
diffForEachLineCallbackFunction · 0.80
diffNotifyCallbackFunction · 0.80
hunkApplyCallbackFunction · 0.80
deltaApplyCallbackFunction · 0.80
stashForeachCallbackFunction · 0.80
smartTransportCallbackFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected