From 612a29b031c0f2914d8b283b99bf187f20182fa9 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 7 Aug 2019 19:14:12 +0200 Subject: fix everything following the hash-->id change --- bug/snapshot.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bug') 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 } } -- cgit