mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Rename RebaseMode to WorkingTreeState
We're about to add more possible values (reverting and cherry-picking), so working tree state seems like a more suitable name.
This commit is contained in:
parent
1a73697546
commit
cd36e95a82
17 changed files with 50 additions and 50 deletions
|
@ -78,7 +78,7 @@ func (self *UndoController) reflogUndo() error {
|
|||
undoEnvVars := []string{"GIT_REFLOG_ACTION=[lazygit undo]"}
|
||||
undoingStatus := self.c.Tr.UndoingStatus
|
||||
|
||||
if self.c.Git().Status.WorkingTreeState() == enums.REBASE_MODE_REBASING {
|
||||
if self.c.Git().Status.WorkingTreeState() == enums.WORKING_TREE_STATE_REBASING {
|
||||
return errors.New(self.c.Tr.CantUndoWhileRebasing)
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,7 @@ func (self *UndoController) reflogRedo() error {
|
|||
redoEnvVars := []string{"GIT_REFLOG_ACTION=[lazygit redo]"}
|
||||
redoingStatus := self.c.Tr.RedoingStatus
|
||||
|
||||
if self.c.Git().Status.WorkingTreeState() == enums.REBASE_MODE_REBASING {
|
||||
if self.c.Git().Status.WorkingTreeState() == enums.WORKING_TREE_STATE_REBASING {
|
||||
return errors.New(self.c.Tr.CantRedoWhileRebasing)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue