git-gui: Clip the commit summaries in the blame history menu
Some commit lines can get really long when users enter a lot of text without linewrapping (for example). Rather than letting the menu get out of control in terms of width we clip the summary to the first 50+ characters. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Jun 2, 2007 at 00:09 UTC
b55a243dfc51865445e4b13e84dc6d4cb917bcdf
1 file changed
+3
lib/blame.tcl
+3
@@ -390,6 +390,9 @@ method _history_menu {} {
390
}
391
if {![catch {set summary $header($c,summary)}]} {
392
append t " $summary"
393
+ if {[string length $t] > 70} {
394
+ set t [string range $t 0 66]...
395
+ }
396
}
397
398
$m add command -label $t -command [cb _goback $i $c $f]