Package org.eclipse.jgit.lib
Class CoreConfig
java.lang.Object
org.eclipse.jgit.lib.CoreConfig
This class keeps git repository core parameters.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Permissible values forcore.autocrlf
.static enum
Permissible values forcore.checkstat
.static enum
Permissible values forcore.eol
.static enum
EOL stream conversion protocol.static enum
Options for hiding files whose names start with a period.static enum
Permissible values forcore.logAllRefUpdates
.static enum
Options for symlink handling -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final int
private final String
static final Config.SectionParser<CoreConfig>
Key forConfig.get(SectionParser)
.private final CoreConfig.LogRefUpdates
private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet path of attributesfileint
Get the compression level to use when storing loose objectsGet path of excludesfileint
Get the preferred pack index file format; 0 for oldest possible.boolean
Deprecated.since 5.6; default value depends on whether the repository is bare.
-
Field Details
-
KEY
Key forConfig.get(SectionParser)
. -
compression
private final int compression -
packIndexVersion
private final int packIndexVersion -
logAllRefUpdates
-
excludesfile
-
attributesfile
-
-
Constructor Details
-
CoreConfig
-
-
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
-