Class DfsObjDatabase.PackList

java.lang.Object
org.eclipse.jgit.internal.storage.dfs.DfsObjDatabase.PackList
Enclosing class:
DfsObjDatabase

public abstract static class DfsObjDatabase.PackList extends Object
Snapshot of packs scanned in a single pass.
  • Field Details

    • packs

      public final DfsPackFile[] packs
      All known packs, sorted.
    • reftables

      public final DfsReftable[] reftables
      All known reftables, sorted.
  • Method Details

    • getLastModified

      public long getLastModified()
      Get last modified time of all packs
      Returns:
      last modified time of all packs, in milliseconds.
    • markDirty

      public abstract void markDirty()
      Mark pack list as dirty.

      Used when the caller knows that new data might have been written to the repository that could invalidate open readers depending on this pack list, for example if refs are newly scanned.