Class 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 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 Detail

      • newWants

        final java.util.Set<? extends ObjectId> newWants
      • newWantsByNewest

        final java.util.List<RevCommit> newWantsByNewest
      • reusedCommits

        final java.util.List<BitmapCommit> reusedCommits
      • newCommitsByOldest

        final RevCommit[] newCommitsByOldest
      • newCommitStartPos

        final int newCommitStartPos
    • Method Detail

      • iterator

        public java.util.Iterator<RevCommit> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<RevCommit>
      • getCommitCount

        int getCommitCount()