diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-30 13:35:10 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-04 09:07:15 +1100 |
commit | 66e840bc3f83903852408ed8db0be0c6153b5487 (patch) | |
tree | 2e3578e0ceff2fb44b8a7060f87400808eedaef7 /pkg/gui/status_panel.go | |
parent | 5b3572424380418f86df88d201347b54634be530 (diff) |
more refactoring
Diffstat (limited to 'pkg/gui/status_panel.go')
-rw-r--r-- | pkg/gui/status_panel.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/status_panel.go b/pkg/gui/status_panel.go index ee09f6187..d6985dd0d 100644 --- a/pkg/gui/status_panel.go +++ b/pkg/gui/status_panel.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/jesseduffield/lazygit/pkg/commands" + "github.com/jesseduffield/lazygit/pkg/commands/types/enums" "github.com/jesseduffield/lazygit/pkg/constants" "github.com/jesseduffield/lazygit/pkg/gui/presentation" "github.com/jesseduffield/lazygit/pkg/gui/style" @@ -28,7 +28,7 @@ func (gui *Gui) refreshStatus() { status += presentation.ColoredBranchStatus(currentBranch) + " " } - if gui.GitCommand.WorkingTreeState() != commands.REBASE_MODE_NONE { + if gui.GitCommand.WorkingTreeState() != enums.REBASE_MODE_NONE { status += style.FgYellow.Sprintf("(%s) ", gui.GitCommand.WorkingTreeState()) } @@ -72,7 +72,7 @@ func (gui *Gui) handleStatusClick() error { upstreamStatus := presentation.BranchStatus(currentBranch) repoName := utils.GetCurrentRepoName() switch gui.GitCommand.WorkingTreeState() { - case commands.REBASE_MODE_REBASING, commands.REBASE_MODE_MERGING: + case enums.REBASE_MODE_REBASING, enums.REBASE_MODE_MERGING: workingTreeStatus := fmt.Sprintf("(%s)", gui.GitCommand.WorkingTreeState()) if cursorInSubstring(cx, upstreamStatus+" ", workingTreeStatus) { return gui.handleCreateRebaseOptionsMenu() |