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
This commit is contained in:
parent
2a2c2f3373
commit
0e403a18e6
|
@ -262,9 +262,6 @@ Collection<BitmapCommit> selectCommits(int expectedCommitCount)
|
|||
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…
Reference in New Issue