- java.lang.Object
-
- org.eclipse.jgit.lib.CoreConfig
-
public class CoreConfig extends Object
This class keeps git repository core parameters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoreConfig.AutoCRLFPermissible values forcore.autocrlf.static classCoreConfig.CheckStatPermissible values forcore.checkstat.static classCoreConfig.EOLPermissible values forcore.eol.static classCoreConfig.EolStreamTypeEOL stream conversion protocol.static classCoreConfig.HideDotFilesOptions for hiding files whose names start with a period.static classCoreConfig.LogRefUpdatesPermissible values forcore.logAllRefUpdates.static classCoreConfig.SymLinksOptions for symlink handlingstatic classCoreConfig.TrustPackedRefsStatPermissible values forcore.trustPackedRefsStat.
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_COMMIT_GRAPH_ENABLEDefault value of commit graph enable option: falsestatic Config.SectionParser<CoreConfig>KEYKey forConfig.get(SectionParser).
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanenableCommitGraph()Whether to read the commit-graph file (if it exists) to parse the graph structure of commits.StringgetAttributesFile()Get path of attributesfileintgetCompression()Get the compression level to use when storing loose objectsStringgetExcludesFile()Get path of excludesfileintgetPackIndexVersion()Get the preferred pack index file format; 0 for oldest possible.booleanisLogAllRefUpdates()Deprecated.since 5.6; default value depends on whether the repository is bare.
-
-
-
Field Detail
-
KEY
public static final Config.SectionParser<CoreConfig> KEY
Key forConfig.get(SectionParser).
-
DEFAULT_COMMIT_GRAPH_ENABLE
public static final boolean DEFAULT_COMMIT_GRAPH_ENABLE
Default value of commit graph enable option: false- Since:
- 6.5
- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
isLogAllRefUpdates
@Deprecated public boolean isLogAllRefUpdates()
Deprecated.since 5.6; default value depends on whether the repository is bare. UseConfig.getEnum(String, String, String, Enum)directly.Whether to log all refUpdates- Returns:
- whether to log all refUpdates
-
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
-
-