From 16f55e3f4d560330a638986130d27fd067300169 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Thu, 23 Aug 2018 19:11:38 +0200 Subject: bug: introduce WithSnapshot to maintain incrementally and effitiently a snapshot --- bug/operations/add_comment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bug/operations/add_comment.go') diff --git a/bug/operations/add_comment.go b/bug/operations/add_comment.go index 7ae6f2dd..b4126a8e 100644 --- a/bug/operations/add_comment.go +++ b/bug/operations/add_comment.go @@ -42,11 +42,11 @@ func NewAddCommentOp(author bug.Person, message string, files []util.Hash) AddCo } // Convenience function to apply the operation -func Comment(b *bug.Bug, author bug.Person, message string) { +func Comment(b bug.Interface, author bug.Person, message string) { CommentWithFiles(b, author, message, nil) } -func CommentWithFiles(b *bug.Bug, author bug.Person, message string, files []util.Hash) { +func CommentWithFiles(b bug.Interface, author bug.Person, message string, files []util.Hash) { addCommentOp := NewAddCommentOp(author, message, files) b.Append(addCommentOp) } -- cgit