MCPcopy
hub / github.com/go-git/go-git / HasEncodedObject

Method HasEncodedObject

plumbing/storer/object.go:42–42  ·  view source on GitHub ↗

HasEncodedObject returns ErrObjNotFound if the object doesn't exist. If the object does exist, it returns nil.

(plumbing.Hash)

Source from the content-addressed store, hash-verified

40 // HasEncodedObject returns ErrObjNotFound if the object doesn't
41 // exist. If the object does exist, it returns nil.
42 HasEncodedObject(plumbing.Hash) error
43 // EncodedObjectSize returns the plaintext size of the encoded object.
44 EncodedObjectSize(plumbing.Hash) (int64, error)
45 AddAlternate(remote string) error

Callers 3

HasEncodedObjectMethod · 0.65
TestHasEncodedObjectMethod · 0.65

Implementers 2

ObjectStoragestorage/memory/storage.go
MockObjectStorageplumbing/storer/object_test.go

Calls

no outgoing calls

Tested by 1

TestHasEncodedObjectMethod · 0.52