diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-08 14:10:01 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-09 14:09:53 +1100 |
commit | 364c5db19cd8bc50f5142bcced1596a180b1499e (patch) | |
tree | d627878af6ff9bd87d6e90190f179628161d29d8 /pkg/gui/status_panel.go | |
parent | c9a0cc6b30dca6ff6c520268c10afff4e99a68e9 (diff) |
shorten name
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 6a724f983..854ded536 100644 --- a/pkg/gui/status_panel.go +++ b/pkg/gui/status_panel.go @@ -28,8 +28,8 @@ func (gui *Gui) refreshStatus() { status += presentation.ColoredBranchStatus(currentBranch) + " " } - if gui.GitCommand.Status.WorkingTreeState() != enums.REBASE_MODE_NONE { - status += style.FgYellow.Sprintf("(%s) ", gui.GitCommand.Status.WorkingTreeState()) + if gui.Git.Status.WorkingTreeState() != enums.REBASE_MODE_NONE { + status += style.FgYellow.Sprintf("(%s) ", gui.Git.Status.WorkingTreeState()) } name := presentation.GetBranchTextStyle(currentBranch.Name).Sprint(currentBranch.Name) @@ -71,7 +71,7 @@ func (gui *Gui) handleStatusClick() error { cx, _ := gui.Views.Status.Cursor() upstreamStatus := presentation.BranchStatus(currentBranch) repoName := utils.GetCurrentRepoName() - workingTreeState := gui.GitCommand.Status.WorkingTreeState() + workingTreeState := gui.Git.Status.WorkingTreeState() switch workingTreeState { case enums.REBASE_MODE_REBASING, enums.REBASE_MODE_MERGING: var formattedState string |