aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-log.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-08-17 17:02:49 -0700
committerJunio C Hamano <gitster@pobox.com>2020-08-17 17:02:50 -0700
commita555b514cd47f59b43f571eaff6b8cd7c01f0d11 (patch)
tree1e73f9b75a386aed0efaf103786e2d1d639d0284 /Documentation/git-log.txt
parenteca8c62a50e033ce6a4f4e065bb507ca3d98e75c (diff)
parent298889d3e2053cf903b01fbac902cbfb210109ea (diff)
downloadgit-a555b514cd47f59b43f571eaff6b8cd7c01f0d11.tar.gz
Merge branch 'so/log-diff-merges-opt'
Earlier, to countermand the implicit "-m" option when the "--first-parent" option is used with "git log", we added the "--[no-]diff-merges" option in the jk/log-fp-implies-m topic. To leave the door open to allow the "--diff-merges" option to take values that instructs how patches for merge commits should be computed (e.g. "cc"? "-p against first parent?"), redefine "--diff-merges" to take non-optional value, and implement "off" that means the same thing as "--no-diff-merges". * so/log-diff-merges-opt: t/t4013: add test for --diff-merges=off doc/git-log: describe --diff-merges=off revision: change "--diff-merges" option to require parameter
Diffstat (limited to 'Documentation/git-log.txt')
-rw-r--r--Documentation/git-log.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt
index 27fa0ea26d..2b8ac5ff88 100644
--- a/Documentation/git-log.txt
+++ b/Documentation/git-log.txt
@@ -148,7 +148,6 @@ combined-diff option or with `--no-diff-merges`).
rename or copy detection have been requested).
-m::
---diff-merges::
This flag makes the merge commits show the full diff like
regular commits; for each merge parent, a separate log entry
and diff is generated. An exception is that only diff against
@@ -156,6 +155,11 @@ combined-diff option or with `--no-diff-merges`).
in that case, the output represents the changes the merge
brought _into_ the then-current branch.
+--diff-merges=off::
+--no-diff-merges::
+ Disable output of diffs for merge commits (default). Useful to
+ override `-m`, `-c`, or `--cc`.
+
:git-log: 1
include::diff-options.txt[]