Class CoreConfig

java.lang.Object
org.eclipse.jgit.lib.CoreConfig

public class CoreConfig extends Object
This class keeps git repository core parameters.
  • Field Details

  • Method Details

    • getCompression

      public int getCompression()
      Get the compression level to use when storing loose objects
      Returns:
      The compression level to use when storing loose objects
    • getPackIndexVersion

      public int getPackIndexVersion()
      Get the preferred pack index file format; 0 for oldest possible.
      Returns:
      the preferred pack index file format; 0 for oldest possible.
    • getExcludesFile

      public String getExcludesFile()
      Get path of excludesfile
      Returns:
      path of excludesfile
    • getAttributesFile

      public String getAttributesFile()
      Get path of attributesfile
      Returns:
      path of attributesfile
      Since:
      3.7
    • enableCommitGraph

      public boolean enableCommitGraph()
      Whether to read the commit-graph file (if it exists) to parse the graph structure of commits. Default to false.
      Returns:
      whether to read the commit-graph file
      Since:
      6.5
    • getTrustPackedRefsStat

      public CoreConfig.TrustStat getTrustPackedRefsStat()
      Get how far we can trust file attributes of packed-refs file which is used to store Refs in RefDirectory.
      Returns:
      how far we can trust file attributes of packed-refs file.
      Since:
      7.2
    • getTrustLooseRefStat

      public CoreConfig.TrustStat getTrustLooseRefStat()
      Get how far we can trust file attributes of loose ref files which are used to store Refs in RefDirectory.
      Returns:
      how far we can trust file attributes of loose ref files.
      Since:
      7.2
    • getTrustPackStat

      public CoreConfig.TrustStat getTrustPackStat()
      Get how far we can trust file attributes of packed-refs file which is used to store Refs in RefDirectory.
      Returns:
      how far we can trust file attributes of packed-refs file.
      Since:
      7.2
    • getTrustLooseObjectStat

      public CoreConfig.TrustStat getTrustLooseObjectStat()
      Get how far we can trust file attributes of loose ref files which are used to store Refs in RefDirectory.
      Returns:
      how far we can trust file attributes of loose ref files.
      Since:
      7.2
    • getTrustTablesListStat

      public CoreConfig.TrustStat getTrustTablesListStat()
      Get how far we can trust file attributes of the "tables.list" file which is used to store the list of filenames of the files storing Reftables in FileReftableDatabase.
      Returns:
      how far we can trust file attributes of the "tables.list" file.
      Since:
      7.2