summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorSam Delmerico <delmerico@google.com>2024-04-02 12:24:02 -0700
committerSam Delmerico <delmerico@google.com>2024-04-03 16:57:46 +0000
commit5c623b1e6c69f2f67076d668157f9ad6be54422d (patch)
tree0cc802fd6652d820df85e91fc23ec9c61a0e6e94 /org.eclipse.jgit
parent40b78e1877177eab98a1d7674b814de99f8804dc (diff)
downloadjgit-5c623b1e6c69f2f67076d668157f9ad6be54422d.tar.gz
jgit-5c623b1e6c69f2f67076d668157f9ad6be54422d.zip
PackBitmapIndexBuilder: make StoredEntry constructor public
This POD data structure can be used externally Change-Id: I464c45b93d0a56deaadbfe31df57a87e1054741c
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexBuilder.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexBuilder.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexBuilder.java
index d73c7ce887..03d6948e90 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexBuilder.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexBuilder.java
@@ -335,7 +335,21 @@ public class PackBitmapIndexBuilder extends BasePackBitmapIndex {
private final int xorOffset;
private final int flags;
- StoredEntry(long objectId, EWAHCompressedBitmap bitmap,
+ /**
+ * Create a StoredEntry
+ *
+ * @param objectId
+ * offset of this object into the pack index
+ * @param bitmap
+ * bitmap associated with this object
+ * @param xorOffset
+ * offset of the bitmap against which this bitmap is
+ * xor-compressed. If 0, then this bitmap is not
+ * xor-compressed against any other bitmap
+ * @param flags
+ * flags for this bitmap
+ */
+ public StoredEntry(long objectId, EWAHCompressedBitmap bitmap,
int xorOffset, int flags) {
this.objectId = objectId;
this.bitmap = bitmap;