@@ -37,66 +37,79 @@ endif::git-diff[]
37
37
endif::git-format-patch[]
38
38
39
39
ifdef::git-log[]
40
- --diff-merges=(off|none|on|first-parent|1|separate|m|combined|c|dense-combined|cc|remerge|r)::
40
+ -m::
41
+ Show diffs for merge commits in the default format. This is
42
+ similar to '--diff-merges=on', except `-m` will
43
+ produce no output unless `-p` is given as well.
44
+
45
+ -c::
46
+ Produce combined diff output for merge commits.
47
+ Shortcut for '--diff-merges=combined -p'.
48
+
49
+ --cc::
50
+ Produce dense combined diff output for merge commits.
51
+ Shortcut for '--diff-merges=dense-combined -p'.
52
+
53
+ --dd::
54
+ Produce diff with respect to first parent for both merge and
55
+ regular commits.
56
+ Shortcut for '--diff-merges=first-parent -p'.
57
+
58
+ --remerge-diff::
59
+ Produce remerge-diff output for merge commits.
60
+ Shortcut for '--diff-merges=remerge -p'.
61
+
41
62
--no-diff-merges::
63
+ Synonym for '--diff-merges=off'.
64
+
65
+ --diff-merges=<format>::
42
66
Specify diff format to be used for merge commits. Default is
43
- {diff-merges-default} unless `--first-parent` is in use, in which case
44
- `first-parent` is the default.
67
+ {diff-merges-default} unless `--first-parent` is in use, in
68
+ which case `first-parent` is the default.
45
69
+
46
- --diff-merges=(off|none):::
47
- --no-diff-merges:::
70
+ The following formats are supported:
71
+ +
72
+ --
73
+ off, none::
48
74
Disable output of diffs for merge commits. Useful to override
49
75
implied value.
50
76
+
51
- --diff-merges=on:::
52
- --diff-merges=m:::
53
- -m:::
54
- This option makes diff output for merge commits to be shown in
55
- the default format. `-m` will produce the output only if `-p`
56
- is given as well. The default format could be changed using
57
- `log.diffMerges` configuration parameter, which default value
77
+ on, m::
78
+ Make diff output for merge commits to be shown in the default
79
+ format. The default format could be changed using
80
+ `log.diffMerges` configuration variable, whose default value
58
81
is `separate`.
59
82
+
60
- --diff-merges=first-parent:::
61
- --diff-merges=1:::
62
- This option makes merge commits show the full diff with
63
- respect to the first parent only.
83
+ first-parent, 1::
84
+ Show full diff with respect to first parent. This is the same
85
+ format as `--patch` produces for non-merge commits.
86
+ +
87
+ separate::
88
+ Show full diff with respect to each of parents.
89
+ Separate log entry and diff is generated for each parent.
64
90
+
65
- --diff-merges=separate:::
66
- This makes merge commits show the full diff with respect to
67
- each of the parents. Separate log entry and diff is generated
68
- for each parent.
91
+ combined, c::
92
+ Show differences from each of the parents to the merge
93
+ result simultaneously instead of showing pairwise diff between
94
+ a parent and the result one at a time. Furthermore, it lists
95
+ only files which were modified from all parents.
69
96
+
70
- --diff-merges=remerge:::
71
- --diff-merges=r:::
72
- --remerge-diff:::
73
- With this option, two-parent merge commits are remerged to
74
- create a temporary tree object -- potentially containing files
75
- with conflict markers and such. A diff is then shown between
76
- that temporary tree and the actual merge commit.
97
+ dense-combined, cc::
98
+ Further compress output produced by `--diff-merges=combined`
99
+ by omitting uninteresting hunks whose contents in the parents
100
+ have only two variants and the merge result picks one of them
101
+ without modification.
102
+ +
103
+ remerge, r::
104
+ Remerge two-parent merge commits to create a temporary tree
105
+ object--potentially containing files with conflict markers
106
+ and such. A diff is then shown between that temporary tree
107
+ and the actual merge commit.
77
108
+
78
109
The output emitted when this option is used is subject to change, and
79
110
so is its interaction with other options (unless explicitly
80
111
documented).
81
- +
82
- --diff-merges=combined:::
83
- --diff-merges=c:::
84
- -c:::
85
- With this option, diff output for a merge commit shows the
86
- differences from each of the parents to the merge result
87
- simultaneously instead of showing pairwise diff between a
88
- parent and the result one at a time. Furthermore, it lists
89
- only files which were modified from all parents. `-c` implies
90
- `-p`.
91
- +
92
- --diff-merges=dense-combined:::
93
- --diff-merges=cc:::
94
- --cc:::
95
- With this option the output produced by
96
- `--diff-merges=combined` is further compressed by omitting
97
- uninteresting hunks whose contents in the parents have only
98
- two variants and the merge result picks one of them without
99
- modification. `--cc` implies `-p`.
112
+ --
100
113
101
114
--combined-all-paths::
102
115
This flag causes combined diffs (used for merge commits) to
0 commit comments