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

Method BlobObjects

repository.go:1456–1463  ·  view source on GitHub ↗

BlobObjects returns an unsorted BlobIter with all the blobs in the repository.

()

Source from the content-addressed store, hash-verified

1454
1455// BlobObjects returns an unsorted BlobIter with all the blobs in the repository.
1456func (r *Repository) BlobObjects() (*object.BlobIter, error) {
1457 iter, err := r.Storer.IterEncodedObjects(plumbing.BlobObject)
1458 if err != nil {
1459 return nil, err
1460 }
1461
1462 return object.NewBlobIter(r.Storer, iter), nil
1463}
1464
1465// TagObject returns a Tag with the given hash. If not found
1466// plumbing.ErrObjectNotFound is returned. This method only returns

Callers 1

TestBlobsMethod · 0.80

Calls 2

NewBlobIterFunction · 0.92
IterEncodedObjectsMethod · 0.65

Tested by 1

TestBlobsMethod · 0.64