diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-29 11:28:18 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-29 11:28:18 +0200 |
commit | 41e61a67b63e4d6c517005cf6f427115a664bdb5 (patch) | |
tree | 889066eab537b19ad41196b47d803a9d5a3f031e /bug/operation.go | |
parent | 794d014fae9a78bd8664e6628a20902bd6dc767a (diff) | |
download | git-bug-41e61a67b63e4d6c517005cf6f427115a664bdb5.tar.gz |
bug: apply an operation with a pointer to the snapshot
Diffstat (limited to 'bug/operation.go')
-rw-r--r-- | bug/operation.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bug/operation.go b/bug/operation.go index 4c6f2e5a..d7d5af51 100644 --- a/bug/operation.go +++ b/bug/operation.go @@ -35,7 +35,7 @@ type Operation interface { // GetFiles return the files needed by this operation GetFiles() []git.Hash // Apply the operation to a Snapshot to create the final state - Apply(snapshot Snapshot) Snapshot + Apply(snapshot *Snapshot) // Validate check if the operation is valid (ex: a title is a single line) Validate() error // SetMetadata store arbitrary metadata about the operation |