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

Function NewRefdbBackendFromC

refdb.go:42–45  ·  view source on GitHub ↗
(ptr unsafe.Pointer)

Source from the content-addressed store, hash-verified

40}
41
42func NewRefdbBackendFromC(ptr unsafe.Pointer) (backend *RefdbBackend) {
43 backend = &RefdbBackend{ptr: (*C.git_refdb_backend)(ptr)}
44 return backend
45}
46
47func (v *Refdb) SetBackend(backend *RefdbBackend) (err error) {
48 runtime.LockOSThread()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…