Skip to content

Commit

Permalink
gitk: Fix display of "(...)" for parents/children we haven't drawn
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mackerras committed May 14, 2006
1 parent 098dd8a commit b093448
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gitk
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit b093448

Please sign in to comment.