]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/index-pack.c
make the pack index version configurable
authorNicolas Pitre <nico@cam.org>
Fri, 2 Nov 2007 03:26:04 +0000 (23:26 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 Nov 2007 08:32:02 +0000 (01:32 -0700)
commit4d00bda2aa9dd8cd6ec4015832b80eb1273d46d7
treed51a3b7d5534e1b2aeaba0305d4de493b04d6ef8
parent3e4bb087a18435b12eb82116e93af2887578e816
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 <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
builtin-pack-objects.c
index-pack.c