diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-08-28 09:44:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-28 09:44:08 +0200 |
commit | 96286b0a0a051bd4f55d625c64ca239978908d5d (patch) | |
tree | 1fecddbe0c384ab077e5588321362a672f0e9fc4 /plumbing/object/file.go | |
parent | 631a45f55b397090ad7d817a3c72041cfc3729f3 (diff) | |
parent | d68f45f8aaca461167907c07e8c161be14e87157 (diff) | |
download | go-git-96286b0a0a051bd4f55d625c64ca239978908d5d.tar.gz |
Merge pull request #564 from strib/tree-walker-use-seen-cache
plumbing: use `seen` map in tree walker
Diffstat (limited to 'plumbing/object/file.go')
-rw-r--r-- | plumbing/object/file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/object/file.go b/plumbing/object/file.go index 79f57fe..40b5206 100644 --- a/plumbing/object/file.go +++ b/plumbing/object/file.go @@ -81,7 +81,7 @@ type FileIter struct { // NewFileIter takes a storer.EncodedObjectStorer and a Tree and returns a // *FileIter that iterates over all files contained in the tree, recursively. func NewFileIter(s storer.EncodedObjectStorer, t *Tree) *FileIter { - return &FileIter{s: s, w: *NewTreeWalker(t, true)} + return &FileIter{s: s, w: *NewTreeWalker(t, true, nil)} } // Next moves the iterator to the next file and returns a pointer to it. If |