]> source.dussan.org Git - jgit.git/commit
PackWriter: use lib.ObjectIdSet to avoid wrapper 61/63361/2
authorShawn Pearce <spearce@spearce.org>
Tue, 29 Dec 2015 23:11:21 +0000 (15:11 -0800)
committerShawn Pearce <spearce@spearce.org>
Tue, 29 Dec 2015 23:32:24 +0000 (15:32 -0800)
commit29aa444760ea729dd10cdb0468055282a59096e5
treec50187414b14b1c0549ed7a27f5379be8173619e
parent4b7839cafd3561bbeca6ed6dabce3d9039ab8288
PackWriter: use lib.ObjectIdSet to avoid wrapper

Hoist ObjectIdSet up to lib as part of the public API and add
the interface to some common types like PackIndex and JGit custom
ObjectId map types.  This cleans up wrapper code in a number of
places by allowing direct use of the types as an ObjectIdSet.

Future commits can now rely on ObjectIdSet as a simple read-only
type to check a set of objects from a number of storage options.

Change-Id: Ib62b062421d475bd52abd6c84a73916ef36e084b
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/PackWriterTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsGarbageCollector.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackCompactor.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackIndex.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdOwnerMap.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSet.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java