aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/diff-options.txt
diff options
context:
space:
mode:
authorSergey Organov <sorganov@gmail.com>2023-10-09 19:05:34 +0300
committerJunio C Hamano <gitster@pobox.com>2023-10-09 12:47:29 -0700
commitc8e5cb065802e96c5aa5dd25936d9780c5734182 (patch)
tree473551f7c17e5282432baf9ead0257f1d9996b53 /Documentation/diff-options.txt
parentbe3820c60cc82e0ded1d3f3dcc19fbd59ce56aa2 (diff)
downloadgit-c8e5cb065802e96c5aa5dd25936d9780c5734182.tar.gz
diff-merges: introduce '--dd' option
This option provides a shortcut to request diff with respect to first parent for any kind of commit, universally. It's implemented as pure synonym for "--diff-merges=first-parent --patch". Gives user quick and universal way to see what changes, exactly, were brought to a branch by merges as well as by regular commits. Signed-off-by: Sergey Organov <sorganov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/diff-options.txt')
-rw-r--r--Documentation/diff-options.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index 4c64eb2ae6..ac6bc53d8e 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -50,6 +50,11 @@ ifdef::git-log[]
Produce dense combined diff output for merge commits.
Shortcut for '--diff-merges=dense-combined -p'.
+--dd::
+ Produce diff with respect to first parent for both merge and
+ regular commits.
+ Shortcut for '--diff-merges=first-parent -p'.
+
--remerge-diff::
Produce remerge-diff output for merge commits.
Shortcut for '--diff-merges=remerge -p'.