Reuse the magic tOc constant for pack index headers
commitaf71c38adeb9163d1cf73caf6f1f51e13dc54f58
authorShawn O. Pearce <spearce@spearce.org>
Wed, 25 Jun 2008 04:01:48 +0000 (25 00:01 -0400)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 28 Jun 2008 10:11:52 +0000 (28 12:11 +0200)
treeb65026f2e0d20ebc021f7d235c260385dff42e22
parent011734c91039ac0d8094ec50708a5794713119f3
Reuse the magic tOc constant for pack index headers

We need this constant to detect version 2 index files at read time,
but we also need it to create version 2 index files.

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