]> git.ipfire.org Git - thirdparty/git.git/commit
scalar register: add --no-maintenance option
authorDerrick Stolee <stolee@gmail.com>
Wed, 7 May 2025 01:50:35 +0000 (01:50 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 May 2025 21:04:31 +0000 (14:04 -0700)
commit9816e24a78e3973164f324d50caa948ecfa2ab81
tree8a5a08af7c177cc45c476e669c99d5eb35dd79f2
parentc428216d4df289704ad01bb413c177bc0de32e0c
scalar register: add --no-maintenance option

When registering a repository with Scalar to get the latest opinionated
configuration, the 'scalar register' command will also set up background
maintenance. This is a recommended feature for most user scenarios.

However, this is not always recommended in some scenarios where
background modifications may interfere with foreground activities.
Specifically, setting up a clone for use in automation may require doing
certain maintenance steps in the foreground that could become blocked by
concurrent background maintenance operations.

Allow the user to specify --no-maintenance to 'scalar register'. This
requires updating the method prototype for register_dir(), so use the
default of enabling this value when otherwise specified.

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