()
| 290 | } |
| 291 | |
| 292 | func (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 | |
| 303 | func (it *commitAllIterator) ForEach(cb func(*Commit) error) error { |
| 304 | for { |