]> git.ipfire.org Git - thirdparty/git.git/commit
scalar reconfigure: add --maintenance=<mode> option
authorDerrick Stolee <stolee@gmail.com>
Wed, 7 May 2025 01:50:37 +0000 (01:50 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 May 2025 21:04:32 +0000 (14:04 -0700)
commita34fef86e09f4dfe8b1198dd56e0631d24302b0e
tree1fe94344d8e391ef8fffc6b5b3cd166ca78f8095
parent882ce0c475167039ca368d34699e113042ea47ae
scalar reconfigure: add --maintenance=<mode> option

When users want to enable the latest and greatest configuration options
recommended by Scalar after a Git upgrade, 'scalar reconfigure --all' is
a great option that iterates over all repos in the multi-valued
'scalar.repos' config key.

However, this feature previously forced users to enable background
maintenance. In some environments this is not preferred.

Add a new --maintenance=<mode> option to 'scalar reconfigure' that
provides options for enabling (default), disabling, or leaving
background maintenance config as-is.

Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/scalar.adoc
scalar.c
t/t9210-scalar.sh