path: root/Documentation/config.txt
diff options
authorNicolas Pitre <>2007-11-02 03:26:04 (GMT)
committerJunio C Hamano <>2007-11-02 08:32:02 (GMT)
commit4d00bda2aa9dd8cd6ec4015832b80eb1273d46d7 (patch)
treed51a3b7d5534e1b2aeaba0305d4de493b04d6ef8 /Documentation/config.txt
parent3e4bb087a18435b12eb82116e93af2887578e816 (diff)
make the pack index version configurable
It is a good idea to use pack index version 2 all the time since it has proper protection against propagation of certain pack corruptions when repacking which is not possible with index version 1, as demonstrated in test t5302. Hence this config option. The default is still pack index version 1. Signed-off-by: Nicolas Pitre <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/config.txt')
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index edf50cd..0df004e 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -661,6 +661,15 @@ pack.threads::
machines. The required amount of memory for the delta search window
is however multiplied by the number of threads.
+ Specify the default pack index version. Valid values are 1 for
+ legacy pack index used by Git versions prior to 1.5.2, and 2 for
+ the new pack index with capabilities for packs larger than 4 GB
+ as well as proper protection against the repacking of corrupted
+ packs. Version 2 is selected and this config option ignored
+ whenever the corresponding pack is larger than 2 GB. Otherwise
+ the default is 1.
The default merge strategy to use when pulling multiple branches
at once.