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

Function NewObjectIter

plumbing/object/object.go:178–180  ·  view source on GitHub ↗

NewObjectIter takes a storer.EncodedObjectStorer and a storer.EncodedObjectIter and returns an *ObjectIter that iterates over all objects contained in the storer.EncodedObjectIter.

(s storer.EncodedObjectStorer, iter storer.EncodedObjectIter)

Source from the content-addressed store, hash-verified

176// storer.EncodedObjectIter and returns an *ObjectIter that iterates over all
177// objects contained in the storer.EncodedObjectIter.
178func NewObjectIter(s storer.EncodedObjectStorer, iter storer.EncodedObjectIter) *ObjectIter {
179 return &ObjectIter{iter, s}
180}
181
182// Next moves the iterator to the next object and returns a pointer to it. If
183// there are no more objects, it returns io.EOF.

Callers 2

ObjectsMethod · 0.92
TestObjectIterMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestObjectIterMethod · 0.68