MCPcopy
hub / github.com/go-git/go-git / NewCommitIter

Function NewCommitIter

plumbing/object/commit.go:567–569  ·  view source on GitHub ↗

NewCommitIter takes a storer.EncodedObjectStorer and a storer.EncodedObjectIter and returns a CommitIter that iterates over all commits contained in the storer.EncodedObjectIter. Any non-commit object returned by the storer.EncodedObjectIter is skipped.

(s storer.EncodedObjectStorer, iter storer.EncodedObjectIter)

Source from the content-addressed store, hash-verified

565//
566// Any non-commit object returned by the storer.EncodedObjectIter is skipped.
567func NewCommitIter(s storer.EncodedObjectStorer, iter storer.EncodedObjectIter) CommitIter {
568 return &storerCommitIter{iter, s}
569}
570
571// Next moves the iterator to the next commit and returns a pointer to it. If
572// there are no more commits, it returns io.EOF.

Callers 3

CommitObjectsMethod · 0.92
filteredParentIterFunction · 0.85
ParentsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…