summaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorLibravatar Paul Mackerras <paulus@samba.org>2006-05-15 09:56:08 +1000
committerLibravatar Paul Mackerras <paulus@samba.org>2006-05-15 09:56:08 +1000
commitb09344891010330dcdd26b90453e7e31c780612e (patch)
treefe33d364fc083d327f8cf7436435171c4a311543 /gitk
parentgitk: Allow view to specify arbitrary arguments to git-rev-list (diff)
downloadtgif-b09344891010330dcdd26b90453e7e31c780612e.tar.xz
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>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk5
1 files changed, 4 insertions, 1 deletions
diff --git a/gitk b/gitk
index 4aa57c01ce..d59debf2f5 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)"