]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: replay: improve config description
authorKristoffer Haugsbakk <code@khaugsbakk.name>
Wed, 3 Jun 2026 16:04:23 +0000 (18:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Jun 2026 23:12:04 +0000 (08:12 +0900)
First of all, this bullet list for `--ref-action` introduces a term with
a colon.  This is exactly what a description list is, structurally. Let’s
be sylistically consistent and use the description list markup
construct. Let’s also drop the harmless but unneeded indentation.

Second, let’s replace the inline-verbatim `git replay` with a link
to git-replay(1), since we are naming the command. But make that
conditional so that we avoid a self-link inside git-replay(1).[1]

† 1: See e.g. e7b3a768 (doc: git-init: rework config item
     init.templateDir, 2024-03-10) for another example of
     avoiding self-linking

Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/replay.adoc
Documentation/git-replay.adoc

index 7d549d2f0e519559d4bf4f19f6f08518a5a882f0..7328da9537dc64f9ab54217edd77a26b74b39187 100644 (file)
@@ -1,11 +1,15 @@
 replay.refAction::
-       Specifies the default mode for handling reference updates in
-       `git replay`. The value can be:
+       Specifies the default mode for handling reference updates.
+       The value can be:
 +
 --
-       * `update`: Update refs directly using an atomic transaction (default behavior).
-       * `print`: Output update-ref commands for pipeline use.
+`update`;; Update refs directly using an atomic transaction (default behavior).
+`print`;; Output update-ref commands for pipeline use.
 --
 +
-This setting can be overridden with the `--ref-action` command-line option.
-When not configured, `git replay` defaults to `update` mode.
+ifdef::git-replay[]
+See `--ref-action`.
+endif::git-replay[]
+ifndef::git-replay[]
+See `--ref-action` for linkgit:git-replay[1] for details.
+endif::git-replay[]
index f9ca2db2833a1d9a53cd1f43df39fb9e6a1c50d3..4de85088d6c4c9d7e649670f9de48f685a6aa124 100644 (file)
@@ -211,6 +211,7 @@ to use bare commit IDs instead of branch names.
 
 CONFIGURATION
 -------------
+:git-replay: 1
 include::config/replay.adoc[]
 
 GIT