aboutsummaryrefslogtreecommitdiffstats
path: root/operations/set_title.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-12 16:57:04 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-12 16:57:46 +0200
commit60fcfcdcb0e89741528cfc99a94a48f204d48e6b (patch)
tree48189b7f85e10b1bdf6a4b897ac0b966c4cec23c /operations/set_title.go
parent3605887345792d2f981f971c6c4a2cb7f86a343e (diff)
downloadgit-bug-60fcfcdcb0e89741528cfc99a94a48f204d48e6b.tar.gz
bug: change the OperationPack serialization format for Json
See https://github.com/MichaelMure/git-bug/issues/5 for the details of this choice
Diffstat (limited to 'operations/set_title.go')
-rw-r--r--operations/set_title.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/operations/set_title.go b/operations/set_title.go
index 5bd6260a..7aa76268 100644
--- a/operations/set_title.go
+++ b/operations/set_title.go
@@ -10,8 +10,8 @@ var _ bug.Operation = SetTitleOperation{}
type SetTitleOperation struct {
bug.OpBase
- Title string
- Was string
+ Title string `json:"title"`
+ Was string `json:"was"`
}
func (op SetTitleOperation) Apply(snapshot bug.Snapshot) bug.Snapshot {