]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: No difftree output for trivial merge
authorJakub Narebski <redacted>
Sat, 8 Sep 2007 19:54:28 +0000 (21:54 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:12 +0000 (00:07 -0400)
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 <redacted>
gitweb.perl

index 1c0fe8b3b08e2eb354da187e35e6373c69cfbc4a85b060fe08f5f0fd3b89d23e..d8b8dee18ed012c55fb219feca4f866e933c62e6bf0fc9bdc34b11cd0d9c52d2 100755 (executable)
@@ -2810,7 +2810,7 @@ sub git_difftree_body {
              "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" .
This page took 0.24359 seconds and 4 git commands to generate.