diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2020-08-28 17:45:12 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-25 19:59:44 +0200 |
commit | 1942d48380fec53f76361e9adebef15b5db9628a (patch) | |
tree | 22f3cce07f538def0328d09ddf15e283ec1ada76 /Documentation/config/maintenance.txt | |
parent | maintenance: add incremental-repack auto condition (diff) | |
download | git-1942d48380fec53f76361e9adebef15b5db9628a.tar.xz git-1942d48380fec53f76361e9adebef15b5db9628a.zip |
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>
Diffstat (limited to 'Documentation/config/maintenance.txt')
-rw-r--r-- | Documentation/config/maintenance.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/config/maintenance.txt b/Documentation/config/maintenance.txt index a0706d8f09..06db758172 100644 --- a/Documentation/config/maintenance.txt +++ b/Documentation/config/maintenance.txt @@ -1,3 +1,8 @@ +maintenance.auto:: + This boolean config option controls whether some commands run + `git maintenance run --auto` after doing their normal work. Defaults + to true. + maintenance.<task>.enabled:: This boolean config option controls whether the maintenance task with name `<task>` is run when no `--task` option is specified to |