summaryrefslogtreecommitdiff
path: root/Documentation/fetch-options.txt
diff options
context:
space:
mode:
authorRobert Coup <robert@coup.net.nz>2022-03-28 14:02:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-03-28 17:25:53 (GMT)
commit7390f05a3c674e354ba2f52632046fa0a5c3e501 (patch)
tree2b4cd1de6a82779dfeb39a08ad845f5a1b5c36d5 /Documentation/fetch-options.txt
parent011b7757279e52043a0398b0a3b1d497d8417daf (diff)
downloadgit-7390f05a3c674e354ba2f52632046fa0a5c3e501.zip
git-7390f05a3c674e354ba2f52632046fa0a5c3e501.tar.gz
git-7390f05a3c674e354ba2f52632046fa0a5c3e501.tar.bz2
fetch: after refetch, encourage auto gc repacking
After invoking `fetch --refetch`, the object db will likely contain many duplicate objects. If auto-maintenance is enabled, invoke it with appropriate settings to encourage repacking/consolidation. * gc.autoPackLimit: unless this is set to 0 (disabled), override the value to 1 to force pack consolidation. * maintenance.incremental-repack.auto: unless this is set to 0, override the value to -1 to force incremental repacking. Signed-off-by: Robert Coup <robert@coup.net.nz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/fetch-options.txt')
-rw-r--r--Documentation/fetch-options.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/fetch-options.txt b/Documentation/fetch-options.txt
index 21a247a..49ae48d 100644
--- a/Documentation/fetch-options.txt
+++ b/Documentation/fetch-options.txt
@@ -169,7 +169,8 @@ ifndef::git-pull[]
associated objects that are already present locally, this option fetches
all objects as a fresh clone would. Use this to reapply a partial clone
filter from configuration or using `--filter=` when the filter
- definition has changed.
+ definition has changed. Automatic post-fetch maintenance will perform
+ object database pack consolidation to remove any duplicate objects.
endif::git-pull[]
--refmap=<refspec>::