|
|
@ -115,6 +115,10 @@ public class PackBitmapIndexBuilder extends BasePackBitmapIndex { |
|
|
|
JGitText.get().badObjectType, String.valueOf(type))); |
|
|
|
JGitText.get().badObjectType, String.valueOf(type))); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
commits.trim(); |
|
|
|
|
|
|
|
trees.trim(); |
|
|
|
|
|
|
|
blobs.trim(); |
|
|
|
|
|
|
|
tags.trim(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private ObjectToPack[] sortByOffset(List<ObjectToPack> entries) { |
|
|
|
private ObjectToPack[] sortByOffset(List<ObjectToPack> entries) { |
|
|
@ -168,6 +172,7 @@ public class PackBitmapIndexBuilder extends BasePackBitmapIndex { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void addBitmap( |
|
|
|
public void addBitmap( |
|
|
|
AnyObjectId objectId, EWAHCompressedBitmap bitmap, int flags) { |
|
|
|
AnyObjectId objectId, EWAHCompressedBitmap bitmap, int flags) { |
|
|
|
|
|
|
|
bitmap.trim(); |
|
|
|
StoredBitmap result = new StoredBitmap(objectId, bitmap, null, flags); |
|
|
|
StoredBitmap result = new StoredBitmap(objectId, bitmap, null, flags); |
|
|
|
getBitmaps().add(result); |
|
|
|
getBitmaps().add(result); |
|
|
|
byAddOrder.add(result); |
|
|
|
byAddOrder.add(result); |
|
|
|