diff options
author | Elijah Newren <newren@gmail.com> | 2023-11-24 14:10:39 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-11-26 04:10:49 +0300 |
commit | 81613be31e0bedf8709fa0962f1b6f85dcb053a2 (patch) | |
tree | 64c78614a8076b11664c765dcaf3dc7db2aa9533 /Documentation/git-replay.txt | |
parent | fda7dea7c95a7958d36ead75116c1ffbf1791cc0 (diff) |
replay: make it a minimal server side command
We want this command to be a minimal command that just does server side
picking of commits, displaying the results on stdout for higher level
scripts to consume.
So let's simplify it:
* remove the worktree and index reading/writing,
* remove the ref (and reflog) updating,
* remove the assumptions tying us to HEAD, since (a) this is not a
rebase and (b) we want to be able to pick commits in a bare repo,
i.e. to/from branches that are not checked out and not the main
branch,
* remove unneeded includes,
* handle rebasing multiple branches by printing on stdout the update
ref commands that should be performed.
The output can be piped into `git update-ref --stdin` for the ref
updates to happen.
In the future to make it easier for users to use this command
directly maybe an option can be added to automatically pipe its output
into `git update-ref`.
Co-authored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-replay.txt')
-rw-r--r-- | Documentation/git-replay.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/git-replay.txt b/Documentation/git-replay.txt index 2ca7ca5fd8..267282d92a 100644 --- a/Documentation/git-replay.txt +++ b/Documentation/git-replay.txt @@ -15,7 +15,10 @@ DESCRIPTION ----------- Takes a range of commits, specified by <oldbase> and <branch>, and -replays them onto a new location (see `--onto` option below). +replays them onto a new location (see `--onto` option below). Leaves +the working tree and the index untouched, and updates no references. +The output of this command is meant to be used as input to +`git update-ref --stdin`, which would update the relevant branches. THIS COMMAND IS EXPERIMENTAL. THE BEHAVIOR MAY CHANGE. |