diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-17 10:23:06 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-21 22:07:14 +1100 |
commit | 1f3e1720a3a0bd31c0816a94d0b7c5bca1589f96 (patch) | |
tree | 5ad5c1f01b31cdf9e4fed9cdc0a4779a2bf442b8 /pkg/gui/status_panel.go | |
parent | b7f2d0366b2c9b8ac034e426661db4ea72a7bb14 (diff) |
split RemoteBranch out from Branch
Diffstat (limited to 'pkg/gui/status_panel.go')
-rw-r--r-- | pkg/gui/status_panel.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/status_panel.go b/pkg/gui/status_panel.go index 6ad1c9d56..c351f24e8 100644 --- a/pkg/gui/status_panel.go +++ b/pkg/gui/status_panel.go @@ -6,6 +6,7 @@ import ( "github.com/fatih/color" "github.com/jesseduffield/gocui" + "github.com/jesseduffield/lazygit/pkg/commands" "github.com/jesseduffield/lazygit/pkg/utils" ) @@ -34,7 +35,7 @@ func (gui *Gui) refreshStatus(g *gocui.Gui) error { if len(branches) > 0 { branch := branches[0] - name := utils.ColoredString(branch.Name, branch.GetColor()) + name := utils.ColoredString(branch.Name, commands.GetBranchColor(branch.Name)) repoName := utils.GetCurrentRepoName() status += fmt.Sprintf(" %s → %s", repoName, name) } |