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

Method ForEach

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

ForEach call the cb function for each object contained on this iter until an error happens or the end of the iter is reached. If ErrStop is sent the iteration is stop but no error is returned. The iterator is closed.

(cb func(plumbing.EncodedObject) error)

Source from the content-addressed store, hash-verified

161// an error happens or the end of the iter is reached. If ErrStop is sent
162// the iteration is stop but no error is returned. The iterator is closed.
163func (iter *EncodedObjectLookupIter) ForEach(cb func(plumbing.EncodedObject) error) error {
164 return ForEachIterator(iter, cb)
165}
166
167// Close releases any resources used by the iterator.
168func (iter *EncodedObjectLookupIter) Close() {

Callers 1

TestObjectLookupIterMethod · 0.95

Calls 1

ForEachIteratorFunction · 0.85

Tested by 1

TestObjectLookupIterMethod · 0.76