java.lang.Object
org.eclipse.jgit.lib.CoreConfig
This class keeps git repository core parameters.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPermissible values forcore.autocrlf.static enumPermissible values forcore.checkstat.static enumPermissible values forcore.eol.static enumEOL stream conversion protocol.static enumOptions for hiding files whose names start with a period.static enumPermissible values forcore.logAllRefUpdates.static enumOptions for symlink handlingstatic enumPermissible values forcore.trustLooseRefStat.static enumPermissible values forcore.trustPackedRefsStat. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanDefault value of commit graph enable option: falsestatic final Config.SectionParser<CoreConfig>Key forConfig.get(SectionParser). -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether to read the commit-graph file (if it exists) to parse the graph structure of commits.Get path of attributesfileintGet the compression level to use when storing loose objectsGet path of excludesfileintGet the preferred pack index file format; 0 for oldest possible.booleanDeprecated.since 5.6; default value depends on whether the repository is bare.
-
Field Details
-
KEY
Key forConfig.get(SectionParser). -
DEFAULT_COMMIT_GRAPH_ENABLE
public static final boolean DEFAULT_COMMIT_GRAPH_ENABLEDefault value of commit graph enable option: false- Since:
- 6.5
- See Also:
-
-
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.
-
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
Get path of excludesfile- Returns:
- path of excludesfile
-
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
-