summaryrefslogtreecommitdiff
path: root/pack-write.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2008-06-25 04:25:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-06-26 04:30:55 (GMT)
commitc0a5e2d477baa9d3ebf7d3303a7d2b5dbc7c2ffe (patch)
treeba535e0fedfdc5483679df36cd14e0576844cac5 /pack-write.c
parent22c79eab2956d7f47ff2495104583a25208565ac (diff)
downloadgit-c0a5e2d477baa9d3ebf7d3303a7d2b5dbc7c2ffe.zip
git-c0a5e2d477baa9d3ebf7d3303a7d2b5dbc7c2ffe.tar.gz
git-c0a5e2d477baa9d3ebf7d3303a7d2b5dbc7c2ffe.tar.bz2
pack.indexversion config option now defaults to 2
As announced for 1.6.0. Git older than version 1.5.2 (or any other git version with this option set to 1) may revert to version 1 of the pack index by manually deleting all .idx files and recreating them using 'git index-pack'. Communication over the git native protocol is unaffected since the pack index is never transferred. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-write.c')
-rw-r--r--pack-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-write.c b/pack-write.c
index f52cabe..a8f0269 100644
--- a/pack-write.c
+++ b/pack-write.c
@@ -2,7 +2,7 @@
#include "pack.h"
#include "csum-file.h"
-uint32_t pack_idx_default_version = 1;
+uint32_t pack_idx_default_version = 2;
uint32_t pack_idx_off32_limit = 0x7fffffff;
static int sha1_compare(const void *_a, const void *_b)