aboutsummaryrefslogtreecommitdiffstats
path: root/references.go
diff options
context:
space:
mode:
Diffstat (limited to 'references.go')
-rw-r--r--references.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/references.go b/references.go
index c025df9..fe1d12b 100644
--- a/references.go
+++ b/references.go
@@ -82,9 +82,9 @@ func walkGraph(result *[]*object.Commit, seen *map[plumbing.Hash]struct{}, curre
return nil
}
-// TODO: benchmark this making git.object.Commit.parent public instead of using
-// an iterator
func parentsContainingPath(path string, c *object.Commit) []*object.Commit {
+ // TODO: benchmark this method making git.object.Commit.parent public instead of using
+ // an iterator
var result []*object.Commit
iter := c.Parents()
for {