Skip to content

Commit 364bc11

Browse files
sorganovgitster
authored andcommitted
doc/diff-options: document new --diff-merges features
Document changes in -m and --diff-merges=m semantics, as well as new --diff-merges=on option. Signed-off-by: Sergey Organov <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 17c13e6 commit 364bc11

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Documentation/diff-options.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ endif::git-diff[]
3434
endif::git-format-patch[]
3535

3636
ifdef::git-log[]
37-
--diff-merges=(off|none|first-parent|1|separate|m|combined|c|dense-combined|cc)::
37+
--diff-merges=(off|none|on|first-parent|1|separate|m|combined|c|dense-combined|cc)::
3838
--no-diff-merges::
3939
Specify diff format to be used for merge commits. Default is
4040
{diff-merges-default} unless `--first-parent` is in use, in which case
@@ -45,17 +45,24 @@ ifdef::git-log[]
4545
Disable output of diffs for merge commits. Useful to override
4646
implied value.
4747
+
48+
--diff-merges=on:::
49+
--diff-merges=m:::
50+
-m:::
51+
This option makes diff output for merge commits to be shown in
52+
the default format. `-m` will produce the output only if `-p`
53+
is given as well. The default format could be changed using
54+
`log.diffMerges` configuration parameter, which default value
55+
is `separate`.
56+
+
4857
--diff-merges=first-parent:::
4958
--diff-merges=1:::
5059
This option makes merge commits show the full diff with
5160
respect to the first parent only.
5261
+
5362
--diff-merges=separate:::
54-
--diff-merges=m:::
55-
-m:::
5663
This makes merge commits show the full diff with respect to
5764
each of the parents. Separate log entry and diff is generated
58-
for each parent. `-m` doesn't produce any output without `-p`.
65+
for each parent.
5966
+
6067
--diff-merges=combined:::
6168
--diff-merges=c:::

0 commit comments

Comments
 (0)