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:
Jonathan Nieder 2015-11-03 11:31:21 -08:00
parent 2a2c2f3373
commit 0e403a18e6
1 changed files with 0 additions and 3 deletions

View File

@ -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));