summaryrefslogtreecommitdiff
path: root/t/helper/test-tool.c
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2020-09-11 17:49:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-09-25 17:59:44 (GMT)
commit0c18b700810ab2e2a4fac0d5b54a817141198a27 (patch)
tree7f48fbf1957924bd1779127ef8c7130fdb8a03f6 /t/helper/test-tool.c
parent4950b2a2b5c4731e4c9d5b803739a6979b23fed6 (diff)
downloadgit-0c18b700810ab2e2a4fac0d5b54a817141198a27.zip
git-0c18b700810ab2e2a4fac0d5b54a817141198a27.tar.gz
git-0c18b700810ab2e2a4fac0d5b54a817141198a27.tar.bz2
maintenance: add [un]register subcommands
In preparation for launching background maintenance from the 'git maintenance' builtin, create register/unregister subcommands. These commands update the new 'maintenance.repos' config option in the global config so the background maintenance job knows which repositories to maintain. These commands allow users to add a repository to the background maintenance list without disrupting the actual maintenance mechanism. For example, a user can run 'git maintenance register' when no background maintenance is running and it will not start the background maintenance. A later update to start running background maintenance will then pick up this repository automatically. The opposite example is that a user can run 'git maintenance unregister' to remove the current repository from background maintenance without halting maintenance for other repositories. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-tool.c')
0 files changed, 0 insertions, 0 deletions