Class PackWriterBitmapPreparer.CommitSelectionHelper
java.lang.Object
org.eclipse.jgit.internal.storage.pack.PackWriterBitmapPreparer.CommitSelectionHelper
- Enclosing class:
- PackWriterBitmapPreparer
private static final class PackWriterBitmapPreparer.CommitSelectionHelper
extends Object
implements 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
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.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final RevCommit[](package private) final int(package private) final List<BitmapCommit>(package private) final BitmapIndex.BitmapBuilder -
Constructor Summary
ConstructorsConstructorDescriptionCommitSelectionHelper(Set<? extends ObjectId> newWants, RevCommit[] commitsByOldest, int commitStartPos, List<RevCommit> newWantsByNewest, BitmapIndex.BitmapBuilder reusedCommitsBitmap, List<BitmapCommit> reuse) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
newWants
-
newWantsByNewest
-
reusedCommitsBitmap
-
reusedCommits
-
newCommitsByOldest
-
newCommitStartPos
final int newCommitStartPos
-
-
Constructor Details
-
CommitSelectionHelper
CommitSelectionHelper(Set<? extends ObjectId> newWants, RevCommit[] commitsByOldest, int commitStartPos, List<RevCommit> newWantsByNewest, BitmapIndex.BitmapBuilder reusedCommitsBitmap, List<BitmapCommit> reuse)
-
-
Method Details