diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-04 20:06:26 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-04 20:06:26 +0200 |
commit | d17cd003ed4ddf2da6f52ee031299d878c319702 (patch) | |
tree | afa9c06320a0092b19b201c7c1c2a8f7bbb24e86 /bug | |
parent | 48bbd9ba785cee0cf534c272b793c32160299a9a (diff) | |
download | git-bug-d17cd003ed4ddf2da6f52ee031299d878c319702.tar.gz |
bug: also update the operations incrementaly in the snapshot
fix #39
Diffstat (limited to 'bug')
-rw-r--r-- | bug/with_snapshot.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bug/with_snapshot.go b/bug/with_snapshot.go index 0aa3b37d..a004324b 100644 --- a/bug/with_snapshot.go +++ b/bug/with_snapshot.go @@ -28,6 +28,8 @@ func (b *WithSnapshot) Append(op Operation) { } snap := op.Apply(*b.snap) + snap.Operations = append(snap.Operations, op) + b.snap = &snap } |