]> git.ipfire.org Git - thirdparty/git.git/commit
scalar: customize register_dir()'s behavior
authorDerrick Stolee <stolee@gmail.com>
Wed, 7 May 2025 01:50:34 +0000 (01:50 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 May 2025 21:04:31 +0000 (14:04 -0700)
commitc428216d4df289704ad01bb413c177bc0de32e0c
tree11ab3b648e7c6689cf558a6f5c13070ebcf13455
parent6c0bd1fc70efaf053abe4e57c976afdc72d15377
scalar: customize register_dir()'s behavior

In advance of adding a --[no-]maintenance option to several 'scalar'
subcommands, extend the register_dir() method to include an option for
how it should handle background maintenance.

It's important that we understand the context of toggle_maintenance()
that will enable _or disable_ maintenance depending on its input value.
Add a doc comment with this information.

Similarly, update register_dir() to either enable maintenance or leave
it alone.

Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
scalar.c