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 handlingstatic enum
Permissible values forcore.trustPackedRefsStat
. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
Default value of commit graph enable option: falsestatic final Config.SectionParser<CoreConfig>
Key forConfig.get(SectionParser)
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether to read the commit-graph file (if it exists) to parse the graph structure of commits.Get 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)
. -
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
-