diff options
Diffstat (limited to 'operations/operations.go')
-rw-r--r-- | operations/operations.go | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/operations/operations.go b/operations/operations.go index 0bfd3b84..348f8cc8 100644 --- a/operations/operations.go +++ b/operations/operations.go @@ -1,12 +1,14 @@ package operations -import "encoding/gob" +import ( + "github.com/MichaelMure/git-bug/bug" +) // Package initialisation used to register operation's type for (de)serialization func init() { - gob.Register(AddCommentOperation{}) - gob.Register(CreateOperation{}) - gob.Register(SetTitleOperation{}) - gob.Register(SetStatusOperation{}) - gob.Register(LabelChangeOperation{}) + bug.Register(bug.CreateOp, CreateOperation{}) + bug.Register(bug.SetTitleOp, SetTitleOperation{}) + bug.Register(bug.AddCommentOp, AddCommentOperation{}) + bug.Register(bug.SetStatusOp, SetStatusOperation{}) + bug.Register(bug.LabelChangeOp, LabelChangeOperation{}) } |