diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-09-12 11:20:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-12 11:20:29 +0200 |
commit | 8cb0215282c329d299d7d1d195abae4704981ba6 (patch) | |
tree | c499cf7ac25842c818d31c690bedb602940e13db /plumbing/revlist/revlist.go | |
parent | 032ec287ec496117dc85cd0e9c9224b2b17f5398 (diff) | |
parent | 841b62a321b3739381b48aeea7364126d1c54520 (diff) | |
download | go-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/revlist.go')
-rw-r--r-- | plumbing/revlist/revlist.go | 2 |
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 { |