summaryrefslogtreecommitdiffstats
path: root/pkg/gui/undoing.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-12-30 13:35:10 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-04 09:07:15 +1100
commit66e840bc3f83903852408ed8db0be0c6153b5487 (patch)
tree2e3578e0ceff2fb44b8a7060f87400808eedaef7 /pkg/gui/undoing.go
parent5b3572424380418f86df88d201347b54634be530 (diff)
more refactoring
Diffstat (limited to 'pkg/gui/undoing.go')
-rw-r--r--pkg/gui/undoing.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/undoing.go b/pkg/gui/undoing.go
index 76a391730..cb9a46c2c 100644
--- a/pkg/gui/undoing.go
+++ b/pkg/gui/undoing.go
@@ -1,7 +1,7 @@
package gui
import (
- "github.com/jesseduffield/lazygit/pkg/commands"
+ "github.com/jesseduffield/lazygit/pkg/commands/types/enums"
"github.com/jesseduffield/lazygit/pkg/utils"
)
@@ -88,7 +88,7 @@ func (gui *Gui) reflogUndo() error {
undoEnvVars := []string{"GIT_REFLOG_ACTION=[lazygit undo]"}
undoingStatus := gui.Tr.UndoingStatus
- if gui.GitCommand.WorkingTreeState() == commands.REBASE_MODE_REBASING {
+ if gui.GitCommand.WorkingTreeState() == enums.REBASE_MODE_REBASING {
return gui.createErrorPanel(gui.Tr.LcCantUndoWhileRebasing)
}
@@ -123,7 +123,7 @@ func (gui *Gui) reflogRedo() error {
redoEnvVars := []string{"GIT_REFLOG_ACTION=[lazygit redo]"}
redoingStatus := gui.Tr.RedoingStatus
- if gui.GitCommand.WorkingTreeState() == commands.REBASE_MODE_REBASING {
+ if gui.GitCommand.WorkingTreeState() == enums.REBASE_MODE_REBASING {
return gui.createErrorPanel(gui.Tr.LcCantRedoWhileRebasing)
}