]> git.ipfire.org Git - thirdparty/git.git/commit
replay: add replay.refAction config option
authorSiddharth Asthana <siddharthasthana31@gmail.com>
Wed, 5 Nov 2025 19:16:01 +0000 (00:46 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Nov 2025 21:34:55 +0000 (13:34 -0800)
commit336ac90c06ec757f613faae4ffc6c32578a99cd1
treefe065373061025c775ba1535a215f9961f473a2f
parent15cd4ef1f495e51f7db39583b7f562e7170da3d2
replay: add replay.refAction config option

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>
Documentation/config/replay.adoc [new file with mode: 0644]
Documentation/git-replay.adoc
builtin/replay.c
t/t3650-replay-basics.sh