MCPcopy Create free account
hub / github.com/go-git/go-git / EncodedObject

Method EncodedObject

storage/memory/storage.go:134–141  ·  view source on GitHub ↗
(t plumbing.ObjectType, h plumbing.Hash)

Source from the content-addressed store, hash-verified

132}
133
134func (o *ObjectStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error) {
135 obj, ok := o.Objects[h]
136 if !ok || (plumbing.AnyObject != t && obj.Type() != t) {
137 return nil, plumbing.ErrObjectNotFound
138 }
139
140 return obj, nil
141}
142
143func (o *ObjectStorage) IterEncodedObjects(t plumbing.ObjectType) (storer.EncodedObjectIter, error) {
144 var series []plumbing.EncodedObject

Callers

nothing calls this directly

Calls 1

TypeMethod · 0.65

Tested by

no test coverage detected