diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-25 22:00:20 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-25 22:09:43 +1100 |
commit | e6a8dc0bcfc8b8ceb21ea685509e1382ac591190 (patch) | |
tree | 47bdcbe2861a6cd65c66c79d3514a5d73d7e0d9e /pkg/gui/status_panel.go | |
parent | 02c497fad641e8c41a99374162609c35d45ddd10 (diff) |
better logic for checking if we're rebasing
Diffstat (limited to 'pkg/gui/status_panel.go')
-rw-r--r-- | pkg/gui/status_panel.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/gui/status_panel.go b/pkg/gui/status_panel.go index 39d85411e..4c69e9b30 100644 --- a/pkg/gui/status_panel.go +++ b/pkg/gui/status_panel.go @@ -136,20 +136,20 @@ func lazygitTitle() string { } func (gui *Gui) updateWorkTreeState() error { - merging, err := gui.GitCommand.IsInMergeState() + rebaseMode, err := gui.GitCommand.RebaseMode() if err != nil { return err } - if merging { - gui.State.WorkingTreeState = "merging" + if rebaseMode != "" { + gui.State.WorkingTreeState = "rebasing" return nil } - rebaseMode, err := gui.GitCommand.RebaseMode() + merging, err := gui.GitCommand.IsInMergeState() if err != nil { return err } - if rebaseMode != "" { - gui.State.WorkingTreeState = "rebasing" + if merging { + gui.State.WorkingTreeState = "merging" return nil } gui.State.WorkingTreeState = "normal" |