Next moves the iterator to the next commit and returns a pointer to it. If there are no more commits, it returns io.EOF.
()
| 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. |
| 482 | func (iter *storerCommitIter) Next() (*Commit, error) { |
| 483 | obj, err := iter.EncodedObjectIter.Next() |
| 484 | if err != nil { |
| 485 | return nil, err |
| 486 | } |
| 487 | |
| 488 | return DecodeCommit(iter.s, obj) |
| 489 | } |
| 490 | |
| 491 | // ForEach call the cb function for each commit contained on this iter until |
| 492 | // an error appends or the end of the iter is reached. If ErrStop is sent |
nothing calls this directly
no test coverage detected