Create IndexPack task for jgit
commita7865ccf7ddb9bb0c1657f3b82130f96e84bd446
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 11 Mar 2008 23:52:55 +0000 (12 00:52 +0100)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 5 Apr 2008 17:26:24 +0000 (5 19:26 +0200)
tree05f88a95909f40ecad7bda7ebb1c8f11d66de7a0
parent2b3dd01e4e8b8fc676e56d9c81e9ce0099f00a7c
Create IndexPack task for jgit

This is a basic routine that takes any packfile on any type of
java.io.InputStream and copies it to a local file as well as
generates the necessary .idx that goes along with it.  Today
it will handle only pack version 2/3 (though only 2 is actually
used in practice) and it will not handle fixing up thin packs.
To fix thin packs we need to copy existing objects from the
repository into the packfile.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.test/tst/org/spearce/jgit/fetch/IndexPackTest.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/fetch/IndexPack.java [new file with mode: 0644]