MCPcopy Index your code
hub / github.com/github/git-sizer / Next

Method Next

git/obj_iter.go:142–148  ·  view source on GitHub ↗

Next returns either the next object (its OID, type, and size), or a `false` boolean value to indicate that there are no data left.

()

Source from the content-addressed store, hash-verified

140// Next returns either the next object (its OID, type, and size), or a
141// `false` boolean value to indicate that there are no data left.
142func (iter *ObjectIter) Next() (BatchHeader, bool, error) {
143 header, ok := <-iter.headerCh
144 if !ok {
145 return missingHeader, false, iter.p.Wait()
146 }
147 return header, true, nil
148}

Callers 1

ScanRepositoryUsingGraphFunction · 0.95

Calls 1

WaitMethod · 0.65

Tested by

no test coverage detected