Class PackWriterBitmapPreparer.CommitSelectionHelper
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.pack.PackWriterBitmapPreparer.CommitSelectionHelper
-
- All Implemented Interfaces:
java.lang.Iterable<RevCommit>
- Enclosing class:
- PackWriterBitmapPreparer
private static final class PackWriterBitmapPreparer.CommitSelectionHelper extends java.lang.Object implements java.lang.Iterable<RevCommit>
Container for state used in the first phase of selecting commits, which walks all of the reachable commits via the branch tips that are not covered by a previous pack's bitmaps (newWants
) and stores them innewCommitsByOldest
.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.
-
-
Field Summary
Fields Modifier and Type Field 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<BitmapCommit>
reusedCommits
(package private) BitmapIndex.BitmapBuilder
reusedCommitsBitmap
-
Constructor Summary
Constructors Constructor Description CommitSelectionHelper(java.util.Set<? extends ObjectId> newWants, RevCommit[] commitsByOldest, int commitStartPos, java.util.List<RevCommit> newWantsByNewest, BitmapIndex.BitmapBuilder reusedCommitsBitmap, java.util.List<BitmapCommit> reuse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
getCommitCount()
java.util.Iterator<RevCommit>
iterator()
-
-
-
Field Detail
-
newWants
final java.util.Set<? extends ObjectId> newWants
-
newWantsByNewest
final java.util.List<RevCommit> newWantsByNewest
-
reusedCommitsBitmap
final BitmapIndex.BitmapBuilder reusedCommitsBitmap
-
reusedCommits
final java.util.List<BitmapCommit> reusedCommits
-
newCommitsByOldest
final RevCommit[] newCommitsByOldest
-
newCommitStartPos
final int newCommitStartPos
-
-
Constructor Detail
-
CommitSelectionHelper
CommitSelectionHelper(java.util.Set<? extends ObjectId> newWants, RevCommit[] commitsByOldest, int commitStartPos, java.util.List<RevCommit> newWantsByNewest, BitmapIndex.BitmapBuilder reusedCommitsBitmap, java.util.List<BitmapCommit> reuse)
-
-