maintenance: optionally skip --auto process
commit1942d48380fec53f76361e9adebef15b5db9628a
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 28 Aug 2020 15:45:12 +0000 (28 15:45 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Sep 2020 17:59:44 +0000 (25 10:59 -0700)
tree22f3cce07f538def0328d09ddf15e283ec1ada76
parente841a79a131d8ce491cf04d0ca3e24f139a10b82
maintenance: optionally skip --auto process

Some commands run 'git maintenance run --auto --[no-]quiet' after doing
their normal work, as a way to keep repositories clean as they are used.
Currently, users who do not want this maintenance to occur would set the
'gc.auto' config option to 0 to avoid the 'gc' task from running.
However, this does not stop the extra process invocation. On Windows,
this extra process invocation can be more expensive than necessary.

Allow users to drop this extra process by setting 'maintenance.auto' to
'false'.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/maintenance.txt
run-command.c
t/t7900-maintenance.sh