Thread (138 messages) 138 messages, 4 authors, 2020-12-21
STALE2000d
Revisions (2)
  1. v2 current
  2. v3 [diff vs current]

[PATCH v2 31/33] doc/rev-list-options: document --first-parent changes merges format

From: Sergey Organov <hidden>
Date: 2020-12-16 18:52:10
Subsystem: documentation, the rest · Maintainers: Jonathan Corbet, Linus Torvalds

After introduction of the --diff-merges=first-parent, the
--first-parent sets the default format for merges to the same value as
this new option. Document this behavior and add corresponding
reference to --diff-merges.

Signed-off-by: Sergey Organov <redacted>
---
 Documentation/rev-list-options.txt | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/Documentation/rev-list-options.txt b/Documentation/rev-list-options.txt
index 002379056a07..96cc89d157d2 100644
--- a/Documentation/rev-list-options.txt
+++ b/Documentation/rev-list-options.txt
@@ -130,6 +130,11 @@ parents) and `--max-parents=-1` (negative numbers denote no upper limit).
 	this option allows you to ignore the individual commits
 	brought in to your history by such a merge.
 
+ifdef::git-log[]
+	This option also changes default diff format for merge commits
+	to `first-parent`, see `--diff-merges=first-parent` for details.
+endif::git-log[]
+
 --not::
 	Reverses the meaning of the '{caret}' prefix (or lack thereof)
 	for all following revision specifiers, up to the next `--not`.
-- 
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help