From 794d014fae9a78bd8664e6628a20902bd6dc767a Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Fri, 28 Sep 2018 23:51:47 +0200 Subject: bug: define a hash-based identifier for an operation --- bug/op_create.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bug/op_create.go') diff --git a/bug/op_create.go b/bug/op_create.go index 2852a519..c65b3bd8 100644 --- a/bug/op_create.go +++ b/bug/op_create.go @@ -23,6 +23,10 @@ func (op CreateOperation) base() *OpBase { return op.OpBase } +func (op CreateOperation) Hash() (git.Hash, error) { + return hashOperation(op) +} + func (op CreateOperation) Apply(snapshot Snapshot) Snapshot { snapshot.Title = op.Title snapshot.Comments = []Comment{ -- cgit