]> Lady’s Gitweb - Gitweb/commit
gitweb: '--cc' for merges in 'commitdiff' view
authorJakub Narebski <redacted>
Fri, 8 Jun 2007 11:33:28 +0000 (13:33 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
commit698bead5e416dadb7a716426ebd00fdd31d981bab07b4e5893561b9a3b860710
treeb7fe6e51839c037de5eb845cc41e10dc90021c0e7c5b024af57a2b5d5d2483a9
parent9e1a215e5cda047abfe3e0c0db5099b66ca8672412e18895d2f295e2e9907f69
gitweb: '--cc' for merges in 'commitdiff' view

Allow choosing between '-c' (combined diff) and '--cc' (compact
combined) diff format in 'commitdiff' view for merge (multiparent)
commits.  Default is now '--cc'.

In the bottom part of navigation bar there is link allowing to change
diff format: "combined" for '-c' (when using '--cc') and "compact" for
'--cc' (when using '-c'), just on the right of "raw" link to
'commitdiff_plain" view.

About patchset part of diff --cc output: the difftree (whatchanged
table) has "patch" links to anchors to individual patches (on the same
page). The --cc option further compresses the patch output by
omitting some hunks; when this optimization makes all hunks disappear,
the patch is not shown (like in any other "empty diff" case). But the
fact that patch has been simplified out is not reflected in the raw
(difftree) part of diff output; the raw part is the same for '-c' and
'--cc' options. As correcting difftree is rather out of the question,
as it would require scanning patchset part before writing out
difftree, we add "Simple merge" empty diffs as a place to have anchor
to in place of those simplified out and removed patches.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.188279 seconds and 4 git commands to generate.