diff options
author | Michael Muré <batolettre@gmail.com> | 2019-11-19 00:28:06 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-11-19 00:28:06 +0100 |
commit | ed2ac793e9f353720db2615b06569d05c253b977 (patch) | |
tree | 9c5e06aa4e1ef9b41ceb21408de493d2e91b3d00 /bug/interface.go | |
parent | a9b32e6bdaa610e2244816618a316bcdf53545e6 (diff) | |
download | git-bug-ed2ac793e9f353720db2615b06569d05c253b977.tar.gz |
bug: use NeedCommit() in the interface, drop HasPendingOp()
Diffstat (limited to 'bug/interface.go')
-rw-r--r-- | bug/interface.go | 4 |
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 |