summaryrefslogtreecommitdiffstats
path: root/status_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-06-09 19:06:33 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-06-09 19:06:33 +1000
commit7653ff9a2462482d00283576eb68cbf0c5cbb596 (patch)
tree3d0930631bcfbf3ca8643b5fad605cd9df6f2b47 /status_panel.go
parent4f6ae62e79cca93a6a1868c34c784aa907ec1fcb (diff)
add support for merging
Diffstat (limited to 'status_panel.go')
-rw-r--r--status_panel.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/status_panel.go b/status_panel.go
index fded5995d..cbc6956a8 100644
--- a/status_panel.go
+++ b/status_panel.go
@@ -21,6 +21,13 @@ func refreshStatus(g *gocui.Gui) error {
pushables, pullables := gitUpstreamDifferenceCount()
fmt.Fprint(v, "↑"+pushables+"↓"+pullables)
branches := state.Branches
+ if err := updateHasMergeConflictStatus(); err != nil {
+ return err
+ }
+ if state.HasMergeConflicts {
+ colour := color.New(color.FgYellow)
+ fmt.Fprint(v, coloredString(" (merging)", colour))
+ }
if len(branches) == 0 {
return nil
}