Package org.eclipse.jgit.lib
Class CoreConfig
- java.lang.Object
-
- org.eclipse.jgit.lib.CoreConfig
-
public class CoreConfig extends java.lang.Object
This class keeps git repository core parameters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CoreConfig.AutoCRLF
Permissible values forcore.autocrlf
.static class
CoreConfig.CheckStat
Permissible values forcore.checkstat
.static class
CoreConfig.EOL
Permissible values forcore.eol
.static class
CoreConfig.EolStreamType
EOL stream conversion protocol.static class
CoreConfig.HideDotFiles
Options for hiding files whose names start with a period.static class
CoreConfig.LogRefUpdates
Permissible values forcore.logAllRefUpdates
.static class
CoreConfig.SymLinks
Options for symlink handling
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
attributesfile
private int
compression
private java.lang.String
excludesfile
static Config.SectionParser<CoreConfig>
KEY
Key forConfig.get(SectionParser)
.private CoreConfig.LogRefUpdates
logAllRefUpdates
private int
packIndexVersion
-
Constructor Summary
Constructors Modifier Constructor Description private
CoreConfig(Config rc)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getAttributesFile()
Get path of attributesfileint
getCompression()
Get the compression level to use when storing loose objectsjava.lang.String
getExcludesFile()
Get path of excludesfileint
getPackIndexVersion()
Get the preferred pack index file format; 0 for oldest possible.boolean
isLogAllRefUpdates()
Deprecated.since 5.6; default value depends on whether the repository is bare.
-
-
-
Field Detail
-
KEY
public static final Config.SectionParser<CoreConfig> KEY
Key forConfig.get(SectionParser)
.
-
compression
private final int compression
-
packIndexVersion
private final int packIndexVersion
-
logAllRefUpdates
private final CoreConfig.LogRefUpdates logAllRefUpdates
-
excludesfile
private final java.lang.String excludesfile
-
attributesfile
private final java.lang.String attributesfile
-
-
Constructor Detail
-
CoreConfig
private CoreConfig(Config rc)
-
-
Method Detail
-
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 public boolean 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
public java.lang.String getExcludesFile()
Get path of excludesfile- Returns:
- path of excludesfile
-
getAttributesFile
public java.lang.String getAttributesFile()
Get path of attributesfile- Returns:
- path of attributesfile
- Since:
- 3.7
-
-