gitk: Show diffs for boundary commits

With this we run git-diff-tree on a commit even if we think it has
no parents, either because it really has no parents or because it
is a boundary commit.  This means that gitk shows the diff for a
boundary commit when it is selected.

Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Paul Mackerras 2006-03-30 20:50:40 +11:00
Родитель 16c1ff968a
Коммит 7b5ff7e7d7
1 изменённых файлов: 2 добавлений и 2 удалений

4
gitk
Просмотреть файл

@ -2386,9 +2386,9 @@ proc selectline {l isnew} {
$cflist delete 0 end
$cflist insert end "Comments"
if {$nparents($id) == 1} {
if {$nparents($id) <= 1} {
startdiff $id
} elseif {$nparents($id) > 1} {
} else {
mergediff $id
}
}