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

Function allocObject

object.go:230–238  ·  view source on GitHub ↗
(cobj *C.git_object, repo *Repository)

Source from the content-addressed store, hash-verified

228}
229
230func allocObject(cobj *C.git_object, repo *Repository) *Object {
231 obj := &Object{
232 ptr: cobj,
233 repo: repo,
234 }
235 runtime.SetFinalizer(obj, (*Object).Free)
236
237 return obj
238}

Callers 8

newRevspecFromCFunction · 0.85
RevparseSingleMethod · 0.85
RevparseExtMethod · 0.85
lookupTypeMethod · 0.85
lookupPrefixTypeMethod · 0.85
PeelMethod · 0.85
PeelMethod · 0.85
TargetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…