Class PackObjectSizeIndexHelper

java.lang.Object
org.eclipse.jgit.internal.storage.file.PackObjectSizeIndexHelper

public class PackObjectSizeIndexHelper extends Object
A wrapper to write the object size index for existing packs (on disk)
  • Method Details

    • forAllPacks

      public static void forAllPacks(ObjectDirectory db, ProgressMonitor pm) throws IOException
      Add an object size index to all the packs without one in this object database.
      Parameters:
      db - object db for packs
      pm - progress monitor for the object listing phase (adding size to the objects in index)
      Throws:
      IOException - an error reading the packs or writing the object size index file