Skip to content

Commit ea3d988

Browse files
committed
Documentation: clarify diff --cc
The definition of an "uninteresting" hunk was not in line with reality. Signed-off-by: Junio C Hamano <[email protected]>
1 parent a31c00b commit ea3d988

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Documentation/git-diff-tree.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ include::pretty-options.txt[]
9393
This flag changes the way a merge commit patch is displayed,
9494
in a similar way to the '-c' option. It implies the '-c'
9595
and '-p' options and further compresses the patch output
96-
by omitting hunks that show differences from only one
97-
parent, or show the same change from all but one parent
98-
for an Octopus merge. When this optimization makes all
99-
hunks disappear, the commit itself and the commit log
100-
message is not shown, just like in any other "empty diff" case.
96+
by omitting uninteresting hunks whose the contents in the parents
97+
have only two variants and the merge result picks one of them
98+
without modification. When all hunks are uninteresting, the commit
99+
itself and the commit log message is not shown, just like in any other
100+
"empty diff" case.
101101

102102
--always::
103103
Show the commit itself and the commit log message even

Documentation/rev-list-options.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ options may be given. See linkgit:git-diff-files[1] for more options.
112112
--cc::
113113

114114
This flag implies the '-c' options and further compresses the
115-
patch output by omitting hunks that show differences from only
116-
one parent, or show the same change from all but one parent for
117-
an Octopus merge.
115+
patch output by omitting uninteresting hunks whose contents in
116+
the parents have only two variants and the merge result picks
117+
one of them without modification.
118118

119119
-r::
120120

0 commit comments

Comments
 (0)