aboutsummaryrefslogtreecommitdiff
path: root/Documentation/config
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-11-24 15:46:40 -0800
committerJunio C Hamano <gitster@pobox.com>2025-11-24 15:46:40 -0800
commit9370a6be79e89112486e99ff75db43e3c15841e5 (patch)
tree68c2609a477422028e30c5916e649bacfbd51529 /Documentation/config
parentd91d79f26d5f2fb0468f42bf5d44356dce15a414 (diff)
parent336ac90c06ec757f613faae4ffc6c32578a99cd1 (diff)
downloadgit-9370a6be79e89112486e99ff75db43e3c15841e5.tar.xz
Merge branch 'sa/replay-atomic-ref-updates'
"git replay" (experimental) learned to perform ref updates itself in a transaction by default, instead of emitting where each refs should point at and leaving the actual update to another command. * sa/replay-atomic-ref-updates: replay: add replay.refAction config option replay: make atomic ref updates the default behavior replay: use die_for_incompatible_opt2() for option validation
Diffstat (limited to 'Documentation/config')
-rw-r--r--Documentation/config/replay.adoc11
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/config/replay.adoc b/Documentation/config/replay.adoc
new file mode 100644
index 0000000000..7d549d2f0e
--- /dev/null
+++ b/Documentation/config/replay.adoc
@@ -0,0 +1,11 @@
+replay.refAction::
+ Specifies the default mode for handling reference updates in
+ `git replay`. The value can be:
++
+--
+ * `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.