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

Method Lookup

repository.go:232–234  ·  view source on GitHub ↗
(id *Oid)

Source from the content-addressed store, hash-verified

230}
231
232func (v *Repository) Lookup(id *Oid) (*Object, error) {
233 return v.lookupType(id, ObjectAny)
234}
235
236// LookupPrefix looks up an object by its OID given a prefix of its identifier.
237func (v *Repository) LookupPrefix(id *Oid, prefix uint) (*Object, error) {

Callers 12

TestRemotePruneRefsFunction · 0.45
TestRemotePruneFunction · 0.45
TestRemotePushFunction · 0.45
TestRefModificationFunction · 0.45
TestIsNoteFunction · 0.45
TestCreateTagLightweightFunction · 0.45
TestMergeWithSelfFunction · 0.45
appendCommitFunction · 0.45
TestCloneFunction · 0.45
TestCloneWithCallbackFunction · 0.45
TestObjectPoymorphismFunction · 0.45

Calls 1

lookupTypeMethod · 0.95

Tested by 12

TestRemotePruneRefsFunction · 0.36
TestRemotePruneFunction · 0.36
TestRemotePushFunction · 0.36
TestRefModificationFunction · 0.36
TestIsNoteFunction · 0.36
TestCreateTagLightweightFunction · 0.36
TestMergeWithSelfFunction · 0.36
appendCommitFunction · 0.36
TestCloneFunction · 0.36
TestCloneWithCallbackFunction · 0.36
TestObjectPoymorphismFunction · 0.36