Skip to content

Commit 3ef408a

Browse files
jnarebgitster
authored andcommitted
gitweb: No difftree output for trivial merge
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>
1 parent 711fa74 commit 3ef408a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitweb/gitweb.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2809,7 +2809,7 @@ sub git_difftree_body {
28092809
"diff_tree\">\n";
28102810

28112811
# header only for combined diff in 'commitdiff' view
2812-
my $has_header = @parents > 1 && $action eq 'commitdiff';
2812+
my $has_header = @$difftree && @parents > 1 && $action eq 'commitdiff';
28132813
if ($has_header) {
28142814
# table header
28152815
print "<thead><tr>\n" .

0 commit comments

Comments
 (0)