gitk: Fix display of "(...)" for parents/children we haven't drawn
In the commit details window, we were displaying "(...)" for the headlines of parents and children that haven't been drawn, without making any attempt to get those headlines. This adds a call to getcommit to commit_descriptor so we get those headlines. Signed-off-by: Paul Mackerras <paulus@samba.org>
Paul Mackerras committed
May 15, 2006 at 09:56 UTC
b09344891010330dcdd26b90453e7e31c780612e
1 file changed
+4
-1
gitk
+4
-1
@@ -3213,8 +3213,11 @@ proc selcanvline {w x y} {
3213
3214
proc commit_descriptor {p} {
3215
global commitinfo
3216
+ if {![info exists commitinfo($p)]} {
3217
+ getcommit $p
3218
+ }
3219
set l "..."
3217
- if {[info exists commitinfo($p)]} {
3220
+ if {[llength $commitinfo($p)] > 1} {
3221
set l [lindex $commitinfo($p) 0]
3222
}
3223
return "$p ($l)"