@matheusbsbs / matheus-bagliano / commits / ddc1fa8f88
Fork 0

git-gui: Space the commit group continuation out in blame view

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>

Shawn O. Pearce committed Jun 1, 2007 at 15:31 UTC ddc1fa8f883fdef4d7501f3f08474f8f75927533
1 file changed +3 -3
lib/blame.tcl
+3 -3
@@ -301,7 +301,7 @@ method _read_blame {fd} {
301
302 if {![catch {set ncmit $line_commit([expr {$lno - 1}])}]} {
303 if {$ncmit eq $cmit} {
304 - set abbr |
304 + set abbr { |}
305 }
306 }
307
@@ -324,7 +324,7 @@ method _read_blame {fd} {
324
325 $w_cgrp delete $lno.0 "$lno.0 lineend"
326 $w_cgrp insert $lno.0 $abbr
327 - set abbr |
327 + set abbr { |}
328
329 $w_cgrp tag add g$cmit $lno.0 $lno_e
330 $w_line tag add g$cmit $lno.0 $lno_e
@@ -351,7 +351,7 @@ method _read_blame {fd} {
351 if {![catch {set ncmit $line_commit($lno)}]} {
352 if {$ncmit eq $cmit} {
353 $w_cgrp delete $lno.0 "$lno.0 lineend + 1c"
354 - $w_cgrp insert $lno.0 "|\n"
354 + $w_cgrp insert $lno.0 " |\n"
355 }
356 }
357 } elseif {[regexp {^([a-z-]+) (.*)$} $line line key data]} {