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

Method Next

plumbing/object/commit_walker.go:292–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

290}
291
292func (it *commitAllIterator) Next() (*Commit, error) {
293 if it.currCommit == nil {
294 return nil, io.EOF
295 }
296
297 c := it.currCommit.Value.(*Commit)
298 it.currCommit = it.currCommit.Next()
299
300 return c, nil
301}
302
303func (it *commitAllIterator) ForEach(cb func(*Commit) error) error {
304 for {

Callers 1

ForEachMethod · 0.95

Calls 1

NextMethod · 0.65

Tested by

no test coverage detected