aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-04 20:06:26 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-04 20:06:26 +0200
commitd17cd003ed4ddf2da6f52ee031299d878c319702 (patch)
treeafa9c06320a0092b19b201c7c1c2a8f7bbb24e86
parent48bbd9ba785cee0cf534c272b793c32160299a9a (diff)
downloadgit-bug-d17cd003ed4ddf2da6f52ee031299d878c319702.tar.gz
bug: also update the operations incrementaly in the snapshot
fix #39
-rw-r--r--bug/with_snapshot.go2
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
}