Class CoreConfig
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 handling -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Config.SectionParser<CoreConfig> Key forConfig.get(SectionParser). -
Method Summary
Modifier and TypeMethodDescriptionGet 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).
-
-
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
-
getAttributesFile
Get path of attributesfile- Returns:
- path of attributesfile
- Since:
- 3.7
-