aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/revlist
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-09-12 11:20:29 +0200
committerGitHub <noreply@github.com>2017-09-12 11:20:29 +0200
commit8cb0215282c329d299d7d1d195abae4704981ba6 (patch)
treec499cf7ac25842c818d31c690bedb602940e13db /plumbing/revlist
parent032ec287ec496117dc85cd0e9c9224b2b17f5398 (diff)
parent841b62a321b3739381b48aeea7364126d1c54520 (diff)
downloadgo-git-8cb0215282c329d299d7d1d195abae4704981ba6.tar.gz
Merge pull request #586 from keybase/strib/commit-preorder-seen-gh-master
plumbing: the commit walker can skip externally-seen commits
Diffstat (limited to 'plumbing/revlist')
-rw-r--r--plumbing/revlist/revlist.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/revlist/revlist.go b/plumbing/revlist/revlist.go
index 10a5813..009fc93 100644
--- a/plumbing/revlist/revlist.go
+++ b/plumbing/revlist/revlist.go
@@ -108,7 +108,7 @@ func reachableObjects(
ignore []plumbing.Hash,
cb func(h plumbing.Hash),
) error {
- i := object.NewCommitPreorderIter(commit, ignore)
+ i := object.NewCommitPreorderIter(commit, seen, ignore)
for {
commit, err := i.Next()
if err == io.EOF {