summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 711fa74)
raw | patch | inline | side by side (parent: 711fa74)
author | Jakub Narebski <jnareb@gmail.com> | |
Sat, 8 Sep 2007 19:54:28 +0000 (21:54 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 24 Sep 2007 06:12:22 +0000 (23:12 -0700) |
In 'commitdiff' view, for the merge commit, there is an extra header
for the difftree table, with links to commitdiffs to individual
parents. Do not show such header when there is nothing to show, for
trivial merges.
This means that for trivial merge you have to go to 'commit' view
to get links to diffs to each parent.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
for the difftree table, with links to commitdiffs to individual
parents. Do not show such header when there is nothing to show, for
trivial merges.
This means that for trivial merge you have to go to 'commit' view
to get links to diffs to each parent.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index c18339f131510a2c02dc5e7f7ce5a284807b7244..3064298f28837ced72897b6bc6401b3061882926 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
"diff_tree\">\n";
# header only for combined diff in 'commitdiff' view
- my $has_header = @parents > 1 && $action eq 'commitdiff';
+ my $has_header = @$difftree && @parents > 1 && $action eq 'commitdiff';
if ($has_header) {
# table header
print "<thead><tr>\n" .