]> git.ipfire.org Git - thirdparty/git.git/commit - t/t7900-maintenance.sh
maintenance: use 'incremental' strategy by default
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 15 Oct 2020 17:22:03 +0000 (17:22 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Oct 2020 15:36:42 +0000 (08:36 -0700)
commit61f7a383d3b9a7306f1fd44a8dfa070deacc0752
treea3a32480d13bc5a104b0067039b45f46806d61a1
parenta4cb1a2339c1aa4ba71ebc6d2b07d537e1071124
maintenance: use 'incremental' strategy by default

The 'git maintenance (register|start)' subcommands add the current
repository to the global Git config so maintenance will operate on that
repository. It does not specify what maintenance should occur or how
often.

To make it simple for users to start background maintenance with a
recommended schedlue, update the 'maintenance.strategy' config option in
both the 'register' and 'start' subcommands. This allows users to
customize beyond the defaults using individual
'maintenance.<task>.schedule' options, but also the user can opt-out of
this strategy using 'maintenance.strategy=none'.

Helped-by: Martin Ă…gren <martin.agren@gmail.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-maintenance.txt
builtin/gc.c
t/t7900-maintenance.sh