diff options
Diffstat (limited to 'tree.go')
-rw-r--r-- | tree.go | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -50,7 +50,7 @@ func (t *Tree) walkEntries(base string, ch chan *File) { blob := &Blob{} blob.Decode(obj) - ch <- &File{Name: filepath.Join(base, entry.Name), Reader: blob.Reader()} + ch <- &File{Name: filepath.Join(base, entry.Name), Reader: blob.Reader(), Hash: entry.Hash} } } @@ -115,8 +115,3 @@ func (i *TreeIter) Next() (*Tree, error) { tree := &Tree{r: i.r} return tree, tree.Decode(obj) } - -type File struct { - Name string - io.Reader -} |