Shawn O. Pearce  committed b55a243

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 <>

  • Participants
  • Parent commits 08dda17
  • Branches master

Comments (0)

Files changed (1)

File lib/blame.tcl

 		if {![catch {set summary $header($c,summary)}]} {
 			append t " $summary"
+			if {[string length $t] > 70} {
+				set t [string range $t 0 66]...
+			}
 		$m add command -label $t -command [cb _goback $i $c $f]