Code

git-gui: Space the commit group continuation out in blame view
authorShawn O. Pearce <spearce@spearce.org>
Fri, 1 Jun 2007 19:31:01 +0000 (15:31 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 6 Jun 2007 05:26:46 +0000 (01:26 -0400)
The | in the continued lines of the same commit group as not
easily seen on the left edge; putting a single space in front
of the pipe makes it slightly more visually appealing to me as
I can follow the line down through the group to the next commit
marker.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/blame.tcl

index ac45fb15130eb0f06d788bb794758bd04266a11d..93693d099a0957bdfd9619291e00a6f48fa46ca1 100644 (file)
@@ -301,7 +301,7 @@ method _read_blame {fd} {
 
                        if {![catch {set ncmit $line_commit([expr {$lno - 1}])}]} {
                                if {$ncmit eq $cmit} {
-                                       set abbr |
+                                       set abbr { |}
                                }
                        }
 
@@ -324,7 +324,7 @@ method _read_blame {fd} {
 
                                $w_cgrp delete $lno.0 "$lno.0 lineend"
                                $w_cgrp insert $lno.0 $abbr
-                               set abbr |
+                               set abbr { |}
 
                                $w_cgrp tag add g$cmit $lno.0 $lno_e
                                $w_line tag add g$cmit $lno.0 $lno_e
@@ -351,7 +351,7 @@ method _read_blame {fd} {
                        if {![catch {set ncmit $line_commit($lno)}]} {
                                if {$ncmit eq $cmit} {
                                        $w_cgrp delete $lno.0 "$lno.0 lineend + 1c"
-                                       $w_cgrp insert $lno.0 "|\n"
+                                       $w_cgrp insert $lno.0 " |\n"
                                }
                        }
                } elseif {[regexp {^([a-z-]+) (.*)$} $line line key data]} {