Merge branch 'er/ui'
authorShawn O. Pearce <spearce@spearce.org>
Sun, 15 Apr 2007 04:34:28 +0000 (00:34 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 15 Apr 2007 04:34:28 +0000 (00:34 -0400)
* er/ui:
Always bind the return key to the default button
Do not break git-gui messages into multiple lines.
Improve look-and-feel of the git-gui tool.
Teach git-gui to use the user-defined UI font everywhere.
Allow wish interpreter to be defined with TCLTK_PATH

git-gui.sh
index 882b90723d7be8219f67ddfdb8979bc331d6f71f..ef5960cdaf66ac559c01cfa695d8bf5e8d441a20 100755 (executable)
@@ -3605,12 +3605,14 @@ proc read_blame_incremental {fd w w_load w_cmit w_line w_file} {
 proc blame_incremental_status {w} {
        global blame_status blame_data
 
+       set have  $blame_data($w,blame_lines)
+       set total $blame_data($w,total_lines)
+       set pdone 0
+       if {$total} {set pdone [expr {100 * $have / $total}]}
+
        set blame_status($w) [format \
                "Loading annotations... %i of %i lines annotated (%2i%%)" \
-               $blame_data($w,blame_lines) \
-               $blame_data($w,total_lines) \
-               [expr {100 * $blame_data($w,blame_lines)
-                       / $blame_data($w,total_lines)}]]
+               $have $total $pdone]
 }
 
 proc blame_click {w w_cmit w_line w_file cur_w pos} {