aboutsummaryrefslogtreecommitdiffstats
path: root/tree_diff.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-11-08 23:46:38 +0100
committerGitHub <noreply@github.com>2016-11-08 23:46:38 +0100
commitac095bb12c4d29722b60ba9f20590fa7cfa6bc7d (patch)
tree223f36f336ba3414b1e45cac8af6c4744a5d7ef6 /tree_diff.go
parente523701393598f4fa241dd407af9ff8925507a1a (diff)
downloadgo-git-ac095bb12c4d29722b60ba9f20590fa7cfa6bc7d.tar.gz
new plumbing package (#118)
* plumbing: now core was renamed to core, and formats and clients moved inside
Diffstat (limited to 'tree_diff.go')
-rw-r--r--tree_diff.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tree_diff.go b/tree_diff.go
index 1f5f076..d5f0377 100644
--- a/tree_diff.go
+++ b/tree_diff.go
@@ -7,7 +7,7 @@ import (
"sort"
"strings"
- "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/plumbing"
)
type Action int
@@ -250,10 +250,10 @@ func hasChange(a, b *Tree, path string) (bool, error) {
return ha != hb, nil
}
-func hash(tree *Tree, path string) (core.Hash, error) {
+func hash(tree *Tree, path string) (plumbing.Hash, error) {
file, err := tree.File(path)
if err != nil {
- var empty core.Hash
+ var empty plumbing.Hash
return empty, fmt.Errorf("cannot find file %s in tree: %s", path, err)
}