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

Method BlobObject

repository.go:1442–1444  ·  view source on GitHub ↗

BlobObject returns a Blob with the given hash. If not found plumbing.ErrObjectNotFound is returned.

(h plumbing.Hash)

Source from the content-addressed store, hash-verified

1440// BlobObject returns a Blob with the given hash. If not found
1441// plumbing.ErrObjectNotFound is returned.
1442func (r *Repository) BlobObject(h plumbing.Hash) (*object.Blob, error) {
1443 return object.GetBlob(r.Storer, h)
1444}
1445
1446// BlobObjects returns an unsorted BlobIter with all the blobs in the repository.
1447func (r *Repository) BlobObjects() (*object.BlobIter, error) {

Callers 1

TestBlobMethod · 0.80

Calls 1

GetBlobFunction · 0.92

Tested by 1

TestBlobMethod · 0.64