diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-28 23:51:47 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-29 00:51:54 +0200 |
commit | 794d014fae9a78bd8664e6628a20902bd6dc767a (patch) | |
tree | 059fe4469787f792b6ddc4c29e6232c4263ece53 /bug/op_add_comment.go | |
parent | 1bf268cebc84a9de1e538cbb54bcc0f434022192 (diff) | |
download | git-bug-794d014fae9a78bd8664e6628a20902bd6dc767a.tar.gz |
bug: define a hash-based identifier for an operation
Diffstat (limited to 'bug/op_add_comment.go')
-rw-r--r-- | bug/op_add_comment.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bug/op_add_comment.go b/bug/op_add_comment.go index 0a3a5a37..300609fb 100644 --- a/bug/op_add_comment.go +++ b/bug/op_add_comment.go @@ -22,6 +22,10 @@ func (op AddCommentOperation) base() *OpBase { return op.OpBase } +func (op AddCommentOperation) Hash() (git.Hash, error) { + return hashOperation(op) +} + func (op AddCommentOperation) Apply(snapshot Snapshot) Snapshot { comment := Comment{ Message: op.Message, |