Make pack.indexversion config option default to version 2
commit22fbd6a557f3df19a8bf9d6dad6b5069578b159e
authorShawn O. Pearce <spearce@spearce.org>
Thu, 12 Feb 2009 02:36:59 +0000 (11 18:36 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 18 Feb 2009 21:22:39 +0000 (18 22:22 +0100)
tree922c78755b73a3f8df0a3c17ea2ed142f82426d5
parent0ad9b7247ca999610cde92a675d39780aff43b41
Make pack.indexversion config option default to version 2

Git 1.6.0 (released Sun Aug 17 11:42:22 2008 -0700) defaults
to creating the much safer pack index version 2 format when
writing a pack to disk.  Most clients trying to use Git will
be running a recent version of C Git alongside JGit so it is
reasonably safe to assume they have index version 2 reading
support, and are thus prepared to accept this change in the
default output format.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/IndexPack.java
org.spearce.jgit/src/org/spearce/jgit/lib/CoreConfig.java
org.spearce.jgit/src/org/spearce/jgit/lib/PackWriter.java