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

Function NewOidFromBytes

git.go:209–213  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

207}
208
209func NewOidFromBytes(b []byte) *Oid {
210 oid := new(Oid)
211 copy(oid[0:20], b[0:20])
212 return oid
213}
214
215func (oid *Oid) toC() *C.git_oid {
216 return (*C.git_oid)(unsafe.Pointer(oid))

Callers 1

TestIndexerOutOfOrderFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIndexerOutOfOrderFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…