X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=gitk;h=d59debf2f5bb8907cd77fb63f70aa59d6e856602;hb=b09344891010330dcdd26b90453e7e31c780612e;hp=4aa57c01ce56e505aba5384f716376a68a7fdc7a;hpb=098dd8a34b43ea1317527ca1a3354aae9f3704b5;p=git.git diff --git a/gitk b/gitk index 4aa57c01..d59debf2 100755 --- a/gitk +++ b/gitk @@ -3213,8 +3213,11 @@ proc selcanvline {w x y} { proc commit_descriptor {p} { global commitinfo + if {![info exists commitinfo($p)]} { + getcommit $p + } set l "..." - if {[info exists commitinfo($p)]} { + if {[llength $commitinfo($p)] > 1} { set l [lindex $commitinfo($p) 0] } return "$p ($l)"