Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-gui: Remove empty blank line at end of blame
author
Shawn O. Pearce
<spearce@spearce.org>
Fri, 1 Jun 2007 04:08:58 +0000
(
00:08
-0400)
committer
Shawn O. Pearce
<spearce@spearce.org>
Wed, 6 Jun 2007 05:26:43 +0000
(
01:26
-0400)
The blame viewer has this silly blank line at the bottom of it;
we really don't want to see it displayed as we will never get
any blame data for that line (it doesn't exist in the source).
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/blame.tcl
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
d89a494
)
diff --git
a/lib/blame.tcl
b/lib/blame.tcl
index 2d0c3f2b68608b6353d8da44b030a9a253065aa4..a6f0b4ab18752fbd7efbd350cd117d40bd667500 100644
(file)
--- a/
lib/blame.tcl
+++ b/
lib/blame.tcl
@@
-203,10
+203,15
@@
method _read_file {fd} {
regsub "\r\$" $line {} line
incr total_lines
regsub "\r\$" $line {} line
incr total_lines
- $w_load insert end "\n"
- $w_cgrp insert end "\n"
- $w_line insert end "$total_lines\n" linenumber
- $w_file insert end "$line\n"
+ if {$total_lines > 1} {
+ $w_load insert end "\n"
+ $w_cgrp insert end "\n"
+ $w_line insert end "\n"
+ $w_file insert end "\n"
+ }
+
+ $w_line insert end "$total_lines" linenumber
+ $w_file insert end "$line"
}
$w_load conf -state disabled
$w_cgrp conf -state disabled
}
$w_load conf -state disabled
$w_cgrp conf -state disabled