Browse Source

Rely on bitmap RevFilter to filter walk during bitmap selection

This RevWalk filters out reused bitmap commits via the 'reuse' bitmap.
Avoid possible wasted time and complexity by not also redundantly
marking them UNINTERESTING.

Change-Id: Ibb714002ddac599963d148a9aab90645fcc73141
stable-4.2
Jonathan Nieder 9 years ago
parent
commit
0e403a18e6
  1. 3
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriterBitmapPreparer.java

3
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriterBitmapPreparer.java

@ -262,9 +262,6 @@ class PackWriterBitmapPreparer {
BitmapBuilder fullBitmap = commitBitmapIndex.newBitmapBuilder();
rw.reset();
rw.markStart(c);
for (AnyObjectId objectId : selectionHelper.reusedCommits) {
rw.markUninteresting(rw.parseCommit(objectId));
}
rw.setRevFilter(PackWriterBitmapWalker.newRevFilter(
selectionHelper.reusedCommitsBitmap, fullBitmap));

Loading…
Cancel
Save