MCPcopy Index your code
hub / github.com/go-git/go-git / NewCommitFileIterFromIter

Function NewCommitFileIterFromIter

plumbing/object/commit_walker_path.go:32–40  ·  view source on GitHub ↗

NewCommitFileIterFromIter is kept for compatibility, can be replaced with NewCommitPathIterFromIter

(fileName string, commitIter CommitIter, checkParent bool)

Source from the content-addressed store, hash-verified

30
31// NewCommitFileIterFromIter is kept for compatibility, can be replaced with NewCommitPathIterFromIter
32func 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
42func (c *commitPathIter) Next() (*Commit, error) {
43 if c.currentCommit == nil {

Callers 1

TestLogFileWithErrorMethod · 0.92

Calls 1

Tested by 1

TestLogFileWithErrorMethod · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…