aboutsummaryrefslogtreecommitdiffstats
path: root/bug/interface.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-11-19 00:28:06 +0100
committerMichael Muré <batolettre@gmail.com>2019-11-19 00:28:06 +0100
commited2ac793e9f353720db2615b06569d05c253b977 (patch)
tree9c5e06aa4e1ef9b41ceb21408de493d2e91b3d00 /bug/interface.go
parenta9b32e6bdaa610e2244816618a316bcdf53545e6 (diff)
downloadgit-bug-ed2ac793e9f353720db2615b06569d05c253b977.tar.gz
bug: use NeedCommit() in the interface, drop HasPendingOp()
Diffstat (limited to 'bug/interface.go')
-rw-r--r--bug/interface.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bug/interface.go b/bug/interface.go
index 8266e99e..796ee569 100644
--- a/bug/interface.go
+++ b/bug/interface.go
@@ -16,8 +16,8 @@ type Interface interface {
// Append an operation into the staging area, to be committed later
Append(op Operation)
- // Append an operation into the staging area, to be committed later
- HasPendingOp() bool
+ // Indicate that the in-memory state changed and need to be commit in the repository
+ NeedCommit() bool
// Commit write the staging area in Git and move the operations to the packs
Commit(repo repository.ClockedRepo) error