Next moves the iterator to the next commit and returns a pointer to it. If there are no more commits, it returns io.EOF.
()
| 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. |
| 573 | func (iter *storerCommitIter) Next() (*Commit, error) { |
| 574 | obj, err := iter.EncodedObjectIter.Next() |
| 575 | if err != nil { |
| 576 | return nil, err |
| 577 | } |
| 578 | |
| 579 | return DecodeCommit(iter.s, obj) |
| 580 | } |
| 581 | |
| 582 | // ForEach call the cb function for each commit contained on this iter until |
| 583 | // an error appends or the end of the iter is reached. If ErrStop is sent |
nothing calls this directly
no test coverage detected