private static final class PackWriterBitmapPreparer.CommitSelectionHelper extends java.lang.Object implements java.lang.Iterable<RevCommit>
newWants
) and stores them
in newCommitsByOldest
. newCommitsByOldest
is initialized
with an expected size of all commits, but may be smaller if some commits
are unreachable and/or some commits are covered by a previous pack's
bitmaps. commitStartPos
will contain a positive offset to either
the root commit or the oldest commit not covered by previous bitmaps.Modifier and Type | Field and Description |
---|---|
(package private) RevCommit[] |
newCommitsByOldest |
(package private) int |
newCommitStartPos |
(package private) java.util.Set<? extends ObjectId> |
newWants |
(package private) java.util.List<RevCommit> |
newWantsByNewest |
(package private) java.util.List<PackWriterBitmapPreparer.BitmapCommit> |
reusedCommits |
(package private) BitmapIndex.BitmapBuilder |
reusedCommitsBitmap |
Constructor and Description |
---|
CommitSelectionHelper(java.util.Set<? extends ObjectId> newWants,
RevCommit[] commitsByOldest,
int commitStartPos,
java.util.List<RevCommit> newWantsByNewest,
BitmapIndex.BitmapBuilder reusedCommitsBitmap,
java.util.List<PackWriterBitmapPreparer.BitmapCommit> reuse) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
getCommitCount() |
java.util.Iterator<RevCommit> |
iterator() |
final java.util.Set<? extends ObjectId> newWants
final java.util.List<RevCommit> newWantsByNewest
final BitmapIndex.BitmapBuilder reusedCommitsBitmap
final java.util.List<PackWriterBitmapPreparer.BitmapCommit> reusedCommits
final RevCommit[] newCommitsByOldest
final int newCommitStartPos
CommitSelectionHelper(java.util.Set<? extends ObjectId> newWants, RevCommit[] commitsByOldest, int commitStartPos, java.util.List<RevCommit> newWantsByNewest, BitmapIndex.BitmapBuilder reusedCommitsBitmap, java.util.List<PackWriterBitmapPreparer.BitmapCommit> reuse)