Merge branch 'kh/doc-replay-updates' into jch

"git replay" documentation updates.

* kh/doc-replay-updates:
  doc: replay: link section using markup
  doc: replay: document --contained
  doc: replay: mention no output on conflicts
This commit is contained in:
Junio C Hamano
2025-12-12 15:53:05 +09:00

View File

@@ -19,7 +19,7 @@ the working tree and the index untouched. By default, updates the
relevant references using an atomic transaction (all refs update or
none). Use `--ref-action=print` to avoid automatic ref updates and
instead get update commands that can be piped to `git update-ref --stdin`
(see the OUTPUT section below).
(see the <<output,OUTPUT>> section below).
THIS COMMAND IS EXPERIMENTAL. THE BEHAVIOR MAY CHANGE.
@@ -42,6 +42,9 @@ The history is replayed on top of the <branch> and <branch> is updated to
point at the tip of the resulting history. This is different from `--onto`,
which uses the target only as a starting point without updating it.
--contained::
Advance all branches contained in <revision-range>.
--ref-action[=<mode>]::
Control how references are updated. The mode can be:
+
@@ -62,6 +65,7 @@ The default mode can be configured via the `replay.refAction` configuration vari
include::rev-list-options.adoc[]
[[output]]
OUTPUT
------
@@ -80,6 +84,10 @@ the shape of the history being replayed. When using `--advance`, the
number of refs updated is always one, but for `--onto`, it can be one
or more (rebasing multiple branches simultaneously is supported).
There is no stderr output on conflicts; see the <<exit-status,EXIT
STATUS>> section below.
[[exit-status]]
EXIT STATUS
-----------