]> source.dussan.org Git - jgit.git/commit
PackWriter: support excluding objects already in other packs 97/3997/8
authorShawn O. Pearce <spearce@spearce.org>
Tue, 16 Aug 2011 19:32:10 +0000 (12:32 -0700)
committerChris Aniszczyk <zx@twitter.com>
Sun, 21 Aug 2011 20:59:26 +0000 (13:59 -0700)
commita1a8c6d77ec5bea13c4f5ca428e425d95e14e003
treedf7527cbfb99253ba5508d5956d1aed794c2ee19
parentc580c56c4def9639b603553b3d4cbc7117a30938
PackWriter: support excluding objects already in other packs

This can be useful when implementing garbage collection and there
are packs that should not be copied, such as huge packs that have
a sibling ".keep" file alongside of them.

Callers driving PackWriter need to initialize the list of packs not
to include objects from by passing each index to excludeObjects().

Change-Id: Id7f34df69df97be406bcae184308e92b0e8690fd
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java