diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-02-22 19:05:49 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-02-22 19:05:49 +0100 |
commit | 07ca1ac7f3058ea6d3274a01973541fb84782f5e (patch) | |
tree | 8a459b8f2d00d1794103f2bf6febf46aa7f3b853 /tree.go | |
parent | 9c319b2c4d6bb5cff43d237583b463619e95dc93 (diff) | |
download | go-git-07ca1ac7f3058ea6d3274a01973541fb84782f5e.tar.gz |
File, added size and reader is now a methodv3.0.0
Diffstat (limited to 'tree.go')
-rw-r--r-- | tree.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -61,7 +61,7 @@ func (t *Tree) File(path string) (*File, error) { blob := &Blob{} blob.Decode(obj) - return &File{Name: path, Reader: blob.Reader(), Hash: *hash}, nil + return newFile(path, blob), nil } func (t *Tree) findHash(path string) (*core.Hash, error) { |