]> git.ipfire.org Git - thirdparty/git.git/commit - contrib/scalar/scalar.c
scalar: 'unregister' stops background maintenance
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 3 Dec 2021 13:34:20 +0000 (13:34 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 5 Dec 2021 05:52:23 +0000 (21:52 -0800)
commitc76a53eb71c5d0d931b1f95a9933913ecef9e4ad
tree82a54b67c682533892444740e11ac421bbced9e4
parentd0feac4e8c0b60b16c06363f9feb3e2d0ecf00f1
scalar: 'unregister' stops background maintenance

Just like `scalar register` starts the scheduled background maintenance,
`scalar unregister` stops it. Note that we use `git maintenance start`
in `scalar register`, but we do not use `git maintenance stop` in
`scalar unregister`: this would stop maintenance for _all_ repositories,
not just for the one we want to unregister.

The `unregister` command also removes the corresponding entry from the
`[scalar]` section in the global Git config.

Co-authored-by: Victoria Dye <vdye@github.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/scalar/scalar.c
contrib/scalar/scalar.txt