aboutsummaryrefslogtreecommitdiffstats
path: root/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'file.go')
-rw-r--r--file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.go b/file.go
index 9180528..6ba9d0b 100644
--- a/file.go
+++ b/file.go
@@ -55,11 +55,11 @@ func (f *File) Lines() ([]string, error) {
type FileIter struct {
r *Repository
- w TreeWalker
+ w TreeIter
}
func NewFileIter(r *Repository, t *Tree) *FileIter {
- return &FileIter{r: r, w: *NewTreeWalker(r, t)}
+ return &FileIter{r: r, w: *NewTreeIter(r, t, true)}
}
func (iter *FileIter) Next() (*File, error) {