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)
| 474 | // |
| 475 | // Any non-commit object returned by the storer.EncodedObjectIter is skipped. |
| 476 | func NewCommitIter(s storer.EncodedObjectStorer, iter storer.EncodedObjectIter) CommitIter { |
| 477 | return &storerCommitIter{iter, s} |
| 478 | } |
| 479 | |
| 480 | // Next moves the iterator to the next commit and returns a pointer to it. If |
| 481 | // there are no more commits, it returns io.EOF. |
no outgoing calls
no test coverage detected