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>
Paul Mackerras committed
Mar 30, 2006 at 20:50 UTC
7b5ff7e7d715391b9745a46fcfaacf1d97d4dc9f
1 file changed
+2
-2
gitk
+2
-2
@@ -2386,9 +2386,9 @@ proc selectline {l isnew} {
2386
2387
$cflist delete 0 end
2388
$cflist insert end "Comments"
2389
- if {$nparents($id) == 1} {
2389
+ if {$nparents($id) <= 1} {
2390
startdiff $id
2391
- } elseif {$nparents($id) > 1} {
2391
+ } else {
2392
mergediff $id
2393
}
2394
}