NewCommitFileIterFromIter is kept for compatibility, can be replaced with NewCommitPathIterFromIter
(fileName string, commitIter CommitIter, checkParent bool)
| 30 | |
| 31 | // NewCommitFileIterFromIter is kept for compatibility, can be replaced with NewCommitPathIterFromIter |
| 32 | func NewCommitFileIterFromIter(fileName string, commitIter CommitIter, checkParent bool) CommitIter { |
| 33 | return NewCommitPathIterFromIter( |
| 34 | func(path string) bool { |
| 35 | return path == fileName |
| 36 | }, |
| 37 | commitIter, |
| 38 | checkParent, |
| 39 | ) |
| 40 | } |
| 41 | |
| 42 | func (c *commitPathIter) Next() (*Commit, error) { |
| 43 | if c.currentCommit == nil { |
searching dependent graphs…