aboutsummaryrefslogtreecommitdiff
path: root/replay.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-04-08 10:19:18 -0700
committerJunio C Hamano <gitster@pobox.com>2026-04-08 10:19:18 -0700
commit37a4780f2c30de9fe0bef533a266c6bca767a50f (patch)
tree601afbae0030003f3089e95b22dc466d64874d32 /replay.h
parentd8c553bbed21761a8af3fa40a20518e210e78a0d (diff)
parent23d83f8ddbef9adcb87671358b473e55cf90c90b (diff)
downloadgit-37a4780f2c30de9fe0bef533a266c6bca767a50f.tar.xz
Merge branch 'tc/replay-ref'
The experimental `git replay` command learned the `--ref=<ref>` option to allow specifying which ref to update, overriding the default behavior. * tc/replay-ref: replay: allow to specify a ref with option --ref replay: use stuck form in documentation and help message builtin/replay: mark options as not negatable
Diffstat (limited to 'replay.h')
-rw-r--r--replay.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/replay.h b/replay.h
index e916a5f975..0ab74b9805 100644
--- a/replay.h
+++ b/replay.h
@@ -25,6 +25,13 @@ struct replay_revisions_options {
const char *onto;
/*
+ * Reference to update with the result of the replay. This will not
+ * update any refs from `onto`, `advance`, or `revert`. Ignores
+ * `contained`.
+ */
+ const char *ref;
+
+ /*
* Starting point at which to create revert commits; must be a branch
* name. The branch will be updated to point to the revert commits.
* This option is mutually exclusive with `onto` and `advance`.