aboutsummaryrefslogtreecommitdiffstats
path: root/bug
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-08-07 19:14:12 +0200
committerMichael Muré <batolettre@gmail.com>2019-08-08 19:06:13 +0200
commit612a29b031c0f2914d8b283b99bf187f20182fa9 (patch)
treead8f57f5d52952a1506da4c34e5f88d886cef352 /bug
parent2e1a5e246ee3589c2f664a62ebd06be7dc69c229 (diff)
downloadgit-bug-612a29b031c0f2914d8b283b99bf187f20182fa9.tar.gz
fix everything following the hash-->id change
Diffstat (limited to 'bug')
-rw-r--r--bug/snapshot.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/bug/snapshot.go b/bug/snapshot.go
index bc033225..b2e6f130 100644
--- a/bug/snapshot.go
+++ b/bug/snapshot.go
@@ -5,7 +5,6 @@ import (
"time"
"github.com/MichaelMure/git-bug/identity"
- "github.com/MichaelMure/git-bug/util/git"
)
// Snapshot is a compiled form of the Bug data structure used for storage and merge
@@ -71,9 +70,9 @@ func (snap *Snapshot) SearchTimelineItem(ID string) (TimelineItem, error) {
}
// SearchComment will search for a comment matching the given hash
-func (snap *Snapshot) SearchComment(hash git.Hash) (*Comment, error) {
+func (snap *Snapshot) SearchComment(id string) (*Comment, error) {
for _, c := range snap.Comments {
- if c.id == hash.String() {
+ if c.id == id {
return &c, nil
}
}