aboutsummaryrefslogtreecommitdiffstats
path: root/repository/tree_entry.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-07-01 19:39:02 +0200
committerMichael Muré <batolettre@gmail.com>2020-07-01 19:39:02 +0200
commit3cf31fc4049fefc82db0a3d2018b5d98ab77c5d7 (patch)
treec77a29e1f35fefa5040454976c6edcf86e7678bc /repository/tree_entry.go
parent33d510ac3999b3d8fa7a4652dc44a21c713f97de (diff)
downloadgit-bug-3cf31fc4049fefc82db0a3d2018b5d98ab77c5d7.tar.gz
repository: merge git.Hash in for one less /util package
Diffstat (limited to 'repository/tree_entry.go')
-rw-r--r--repository/tree_entry.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/repository/tree_entry.go b/repository/tree_entry.go
index 3e532a30..8b3de8e2 100644
--- a/repository/tree_entry.go
+++ b/repository/tree_entry.go
@@ -3,13 +3,11 @@ package repository
import (
"fmt"
"strings"
-
- "github.com/MichaelMure/git-bug/util/git"
)
type TreeEntry struct {
ObjectType ObjectType
- Hash git.Hash
+ Hash Hash
Name string
}
@@ -34,7 +32,7 @@ func ParseTreeEntry(line string) (TreeEntry, error) {
return TreeEntry{}, err
}
- hash := git.Hash(fields[2])
+ hash := Hash(fields[2])
name := strings.Join(fields[3:], "")
return TreeEntry{