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

Method HasEncodedObject

storage/memory/storage.go:117–122  ·  view source on GitHub ↗
(h plumbing.Hash)

Source from the content-addressed store, hash-verified

115}
116
117func (o *ObjectStorage) HasEncodedObject(h plumbing.Hash) (err error) {
118 if _, ok := o.Objects[h]; !ok {
119 return plumbing.ErrObjectNotFound
120 }
121 return nil
122}
123
124func (o *ObjectStorage) EncodedObjectSize(h plumbing.Hash) (
125 size int64, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected