aboutsummaryrefslogtreecommitdiffstats
path: root/tree.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-30 15:29:31 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-30 15:29:31 +0200
commit60636dd029a1e356bab8698b798504302fe645cb (patch)
tree49cfa335c09bb727d1954132075960562951a2aa /tree.go
parent2c527d02ceac3879f82ab53645b6c7c03c0e5d71 (diff)
downloadgo-git-60636dd029a1e356bab8698b798504302fe645cb.tar.gz
DiffTree based on TreeWalker
Diffstat (limited to 'tree.go')
-rw-r--r--tree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tree.go b/tree.go
index eaa0c15..462589d 100644
--- a/tree.go
+++ b/tree.go
@@ -62,7 +62,7 @@ func (t *Tree) File(path string) (*File, error) {
blob := &Blob{}
blob.Decode(obj)
- return newFile(path, e.Mode, blob), nil
+ return NewFile(path, e.Mode, blob), nil
}
func (t *Tree) findEntry(path string) (*TreeEntry, error) {