git-gui: Update status bar during a merge.
authorShawn O. Pearce <spearce@spearce.org>
Fri, 26 Jan 2007 08:58:56 +0000 (03:58 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 26 Jan 2007 08:58:56 +0000 (03:58 -0500)
I got slightly confused when I did two merges in a row, as the status
bar said "merge completed successfully" while the second merge was
still running.  Now we show what branches are actively being merged.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh

index 0c2dbbebe1287256ff4b3e5c2c086cdd9b491044..6675d3018ba489b669b3339408daf837ad76d176 100755 (executable)
@@ -2658,7 +2658,7 @@ proc visualize_local_merge {w} {
 }
 
 proc start_local_merge_action {w} {
-       global HEAD
+       global HEAD ui_status_value current_branch
 
        set cmd [list git merge]
        set names {}
@@ -2694,7 +2694,9 @@ than 15 branches, merge the branches in batches.
                return
        }
 
-       set cons [new_console "Merge" "Merging [join $names {, }]"]
+       set msg "Merging $current_branch, [join $names {, }]"
+       set ui_status_value "$msg..."
+       set cons [new_console "Merge" $msg]
        console_exec $cons $cmd finish_merge
        bind $w <Destroy> {}
        destroy $w