]> source.dussan.org Git - jgit.git/commit
fix PackWriter excluded objects handling 75/5875/2
authorChristian Halstrick <christian.halstrick@sap.com>
Tue, 8 May 2012 12:25:46 +0000 (14:25 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 4 Jun 2012 14:52:36 +0000 (07:52 -0700)
commit0f84b86e01da4680633c32bad101d021e0cb98ad
tree4f443d608f2fd95f43026954c79c0d60536ce0d7
parentbc7817c9436756bec3ffe88dc0ef75881d4b9478
fix PackWriter excluded objects handling

PackWriter supports excluding objects from being written to the pack.
You may specify a PackIndex which lists all those objects which should
not go into the new pack. This feature was broken because not all
commits have been checked whether they should be excluded or not. For
other object types the exclude algorithm worked. This commit adds the
missing check.

Change-Id: Id0047098393641ccba784c58b8325175c22fcece
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackWriterTest.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java