MCPcopy Index your code
hub / github.com/go-git/go-git / HasEncodedObject

Method HasEncodedObject

storage/transactional/object.go:26–33  ·  view source on GitHub ↗

HasEncodedObject honors the storer.EncodedObjectStorer interface.

(h plumbing.Hash)

Source from the content-addressed store, hash-verified

24
25// HasEncodedObject honors the storer.EncodedObjectStorer interface.
26func (o *ObjectStorage) HasEncodedObject(h plumbing.Hash) error {
27 err := o.EncodedObjectStorer.HasEncodedObject(h)
28 if err == plumbing.ErrObjectNotFound {
29 return o.temporal.HasEncodedObject(h)
30 }
31
32 return err
33}
34
35// EncodedObjectSize honors the storer.EncodedObjectStorer interface.
36func (o *ObjectStorage) EncodedObjectSize(h plumbing.Hash) (int64, error) {

Callers 1

TestHasEncodedObjectMethod · 0.95

Calls 1

HasEncodedObjectMethod · 0.65

Tested by 1

TestHasEncodedObjectMethod · 0.76