aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/difftree/difftree.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/difftree/difftree.go')
-rw-r--r--plumbing/difftree/difftree.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/plumbing/difftree/difftree.go b/plumbing/difftree/difftree.go
deleted file mode 100644
index 76c5f27..0000000
--- a/plumbing/difftree/difftree.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package difftree
-
-import (
- "bytes"
-
- "srcd.works/go-git.v4/plumbing/object"
- "srcd.works/go-git.v4/utils/merkletrie"
- "srcd.works/go-git.v4/utils/merkletrie/noder"
-)
-
-func DiffTree(a, b *object.Tree) ([]*Change, error) {
- from := newTreeNoder(a)
- to := newTreeNoder(b)
-
- hashEqual := func(a, b noder.Hasher) bool {
- return bytes.Equal(a.Hash(), b.Hash())
- }
-
- merkletrieChanges, err := merkletrie.DiffTree(from, to, hashEqual)
- if err != nil {
- return nil, err
- }
-
- return newChanges(merkletrieChanges)
-}