Class PackBitmapCalculator

java.lang.Object
org.eclipse.jgit.internal.storage.pack.PackBitmapCalculator

public class PackBitmapCalculator extends Object
Helper to find out interesting commits, create their bitmaps and write them into the PackBitmapIndexBuilder.
  • Constructor Details

    • PackBitmapCalculator

      public PackBitmapCalculator(PackConfig config)
      Constructor
      Parameters:
      config - configuration
  • Method Details

    • calculate

      public void calculate(ObjectReader reader, ProgressMonitor pm, int numCommits, Set<? extends ObjectId> wants, Set<? extends ObjectId> excludeFromBitmapSelection, PackBitmapIndexBuilder writeBitmaps) throws IOException
      Choose commits, create bitmaps and send them to the builder
      Parameters:
      reader - an object reader
      pm - a progress monitor
      wants - where to start walking looking for commits to bitmap
      numCommits - expected number of new commits to include in the bitmap
      excludeFromBitmapSelection - commits to ignore
      writeBitmaps - store of newly created bitmaps
      Throws:
      IOException - an error