aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/difftree.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-04-11 20:03:00 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2017-04-11 04:38:46 +0200
commitaa818a3f77e6ff06765cf8c246f8708df3d190a7 (patch)
tree302a5671cfa192f5417ffd5dd5c59447e71e2cb2 /plumbing/object/difftree.go
parentaf4f25df56c74b05ae04cc6f2fcac38db1130249 (diff)
downloadgo-git-aa818a3f77e6ff06765cf8c246f8708df3d190a7.tar.gz
plumbing: object, public Tree.FindEntry and minor diff changes
Diffstat (limited to 'plumbing/object/difftree.go')
-rw-r--r--plumbing/object/difftree.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/object/difftree.go b/plumbing/object/difftree.go
index 87a7153..ac58c4d 100644
--- a/plumbing/object/difftree.go
+++ b/plumbing/object/difftree.go
@@ -10,8 +10,8 @@ import (
// DiffTree compares the content and mode of the blobs found via two
// tree objects.
func DiffTree(a, b *Tree) (Changes, error) {
- from := newTreeNoder(a)
- to := newTreeNoder(b)
+ from := NewTreeRootNode(a)
+ to := NewTreeRootNode(b)
hashEqual := func(a, b noder.Hasher) bool {
return bytes.Equal(a.Hash(), b.Hash())