MCPcopy
hub / github.com/github/git-sizer / Next

Method Next

git/ref_iter.go:83–90  ·  view source on GitHub ↗

Next returns either the next reference or a boolean `false` value indicating that the iteration is over. On errors, return an error (in this case, the caller must still call `Close()`).

()

Source from the content-addressed store, hash-verified

81// indicating that the iteration is over. On errors, return an error
82// (in this case, the caller must still call `Close()`).
83func (iter *ReferenceIter) Next() (Reference, bool, error) {
84 ref, ok := <-iter.refCh
85 if !ok {
86 return Reference{}, false, <-iter.errCh
87 }
88
89 return ref, true, nil
90}

Callers 1

ScanRepositoryUsingGraphFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected