mirror of
https://github.com/git/git.git
synced 2026-01-09 01:34:00 +00:00
Add a configuration variable to control the default behavior of git replay for updating references. This allows users who prefer the traditional pipeline output to set it once in their config instead of passing --ref-action=print with every command. The config variable uses string values that mirror the behavior modes: * replay.refAction = update (default): atomic ref updates * replay.refAction = print: output commands for pipeline Helped-by: Junio C Hamano <gitster@pobox.com> Helped-by: Elijah Newren <newren@gmail.com> Helped-by: Christian Couder <christian.couder@gmail.com> Helped-by: Phillip Wood <phillip.wood123@gmail.com> Signed-off-by: Siddharth Asthana <siddharthasthana31@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 lines
400 B
Plaintext
12 lines
400 B
Plaintext
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.
|