Class PackWriterBitmapPreparer.CommitSelectionHelper

java.lang.Object
org.eclipse.jgit.internal.storage.pack.PackWriterBitmapPreparer.CommitSelectionHelper
All Implemented Interfaces:
Iterable<RevCommit>
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.