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 enumDeprecated, for removal: This API element is subject to removal in a future version.static enumDeprecated, for removal: This API element is subject to removal in a future version.useCoreConfig.TrustStatinsteadstatic enumValues forcore.trustXXXoptions. -
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.Get how far we can trust file attributes of loose ref files which are used to storeRefs inRefDirectory.Get how far we can trust file attributes of loose ref files which are used to storeRefs inRefDirectory.Get how far we can trust file attributes of packed-refs file which is used to storeRefs inRefDirectory.Get how far we can trust file attributes of packed-refs file which is used to storeRefs inRefDirectory.Get how far we can trust file attributes of the "tables.list" file which is used to store the list of filenames of the files storingReftables inFileReftableDatabase.
-
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.
-
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
-
getTrustPackedRefsStat
Get how far we can trust file attributes of packed-refs file which is used to storeRefs inRefDirectory.- Returns:
- how far we can trust file attributes of packed-refs file.
- Since:
- 7.2
-
getTrustLooseRefStat
Get how far we can trust file attributes of loose ref files which are used to storeRefs inRefDirectory.- Returns:
- how far we can trust file attributes of loose ref files.
- Since:
- 7.2
-
getTrustPackStat
Get how far we can trust file attributes of packed-refs file which is used to storeRefs inRefDirectory.- Returns:
- how far we can trust file attributes of packed-refs file.
- Since:
- 7.2
-
getTrustLooseObjectStat
Get how far we can trust file attributes of loose ref files which are used to storeRefs inRefDirectory.- Returns:
- how far we can trust file attributes of loose ref files.
- Since:
- 7.2
-
getTrustTablesListStat
Get how far we can trust file attributes of the "tables.list" file which is used to store the list of filenames of the files storingReftables inFileReftableDatabase.- Returns:
- how far we can trust file attributes of the "tables.list" file.
- Since:
- 7.2
-
CoreConfig.TrustStatinstead