aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-12-09 07:54:56 +0900
committerJunio C Hamano <gitster@pobox.com>2025-12-09 07:54:56 +0900
commitbbefa15ff58148a8585987ef91c834ba7b52a496 (patch)
tree766f7fbba8fc60d7d34a320a9b24b7cb61969fbd
parent7fc0b33b5d9ced74819132a094528154f83f4a6a (diff)
parent136f86abc052ef6186d9985fc26833ffc0484888 (diff)
downloadgit-bbefa15ff58148a8585987ef91c834ba7b52a496.tar.gz
Merge branch 'en/replay-doc-revision-range'
The use of "revision" (a connected set of commits) has been clarified in the "git replay" documentation. * en/replay-doc-revision-range: Documentation/git-replay.adoc: fix errors around revision range
-rw-r--r--Documentation/git-replay.adoc13
-rw-r--r--builtin/replay.c2
2 files changed, 7 insertions, 8 deletions
diff --git a/Documentation/git-replay.adoc b/Documentation/git-replay.adoc
index dcb26e8a8e..d03235cca0 100644
--- a/Documentation/git-replay.adoc
+++ b/Documentation/git-replay.adoc
@@ -9,12 +9,12 @@ git-replay - EXPERIMENTAL: Replay commits on a new base, works with bare repos t
SYNOPSIS
--------
[verse]
-(EXPERIMENTAL!) 'git replay' ([--contained] --onto <newbase> | --advance <branch>) [--ref-action[=<mode>]] <revision-range>...
+(EXPERIMENTAL!) 'git replay' ([--contained] --onto <newbase> | --advance <branch>) [--ref-action[=<mode>]] <revision-range>
DESCRIPTION
-----------
-Takes ranges of commits and replays them onto a new location. Leaves
+Takes a range of commits and replays them onto a new location. Leaves
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
@@ -55,11 +55,10 @@ which uses the target only as a starting point without updating it.
The default mode can be configured via the `replay.refAction` configuration variable.
<revision-range>::
- Range of commits to replay. More than one <revision-range> can
- be passed, but in `--advance <branch>` mode, they should have
- a single tip, so that it's clear where <branch> should point
- to. See "Specifying Ranges" in linkgit:git-rev-parse[1] and the
- "Commit Limiting" options below.
+ Range of commits to replay; see "Specifying Ranges" in
+ linkgit:git-rev-parse[1]. In `--advance <branch>` mode, the
+ range should have a single tip, so that it's clear to which tip the
+ advanced <branch> should point.
include::rev-list-options.adoc[]
diff --git a/builtin/replay.c b/builtin/replay.c
index 1f9ffd2b3e..507b909df7 100644
--- a/builtin/replay.c
+++ b/builtin/replay.c
@@ -366,7 +366,7 @@ int cmd_replay(int argc,
const char *const replay_usage[] = {
N_("(EXPERIMENTAL!) git replay "
"([--contained] --onto <newbase> | --advance <branch>) "
- "[--ref-action[=<mode>]] <revision-range>..."),
+ "[--ref-action[=<mode>]] <revision-range>"),
NULL
};
struct option replay_options[] = {