Top Description Inners Fields Constructors Methods
org.eclipse.jgit.lib

public Class CoreConfig

extends Object
Class Inheritance
Static Imports
java.util.zip.Deflater.DEFAULT_COMPRESSION

This class keeps git repository core parameters.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
CoreConfig.AutoCRLF

Permissible values for core.autocrlf.

public static enum
CoreConfig.CheckStat

Permissible values for core.checkstat.

public static enum
CoreConfig.EOL

Permissible values for core.eol.

public static enum
CoreConfig.EolStreamType

EOL stream conversion protocol.

public static enum
CoreConfig.HideDotFiles

Options for hiding files whose names start with a period.

public static enum
CoreConfig.LogRefUpdates

Permissible values for core.logAllRefUpdates.

public static enum
CoreConfig.SymLinks

Options for symlink handling

public static enum
CoreConfig.TrustLooseRefStat

Deprecated for removal since 7.2. use TrustStat instead
Permissible values for core.trustLooseRefStat.
public static enum
CoreConfig.TrustPackedRefsStat

Deprecated for removal since 7.2. use TrustStat instead
Permissible values for core.trustPackedRefsStat.
public static enum
CoreConfig.TrustStat

Values for core.trustXXX options.

Field Summary

Modifier and TypeField and Description
private final String
private final boolean
private final int
public static final boolean
DEFAULT_COMMIT_GRAPH_ENABLE

Default value of commit graph enable option:

private final String
public static final Config.SectionParser<CoreConfig>
private static final Logger
private final int
private final CoreConfig.TrustStat
private final CoreConfig.TrustStat
private final CoreConfig.TrustStat
private final CoreConfig.TrustStat
private final CoreConfig.TrustStat
private final CoreConfig.TrustStat

Constructor Summary

AccessConstructor and Description
pack-priv
CoreConfig(Config
git configuration
rc
)

Create a new core configuration from the passed configuration.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

whether to read the commit-graph file
enableCommitGraph
()

Whether to read the commit-graph file (if it exists) to parse the graph structure of commits.

public String

Returns:

path of attributesfile
getAttributesFile
()

Get path of attributesfile

public int

Returns:

The compression level to use when storing loose objects
getCompression
()

Get the compression level to use when storing loose objects

public String

Returns:

path of excludesfile
getExcludesFile
()

Get path of excludesfile

public int

Returns:

the preferred pack index file format; 0 for oldest possible.
getPackIndexVersion
()

Get the preferred pack index file format; 0 for oldest possible.

public CoreConfig.TrustStat

Returns:

how far we can trust file attributes of loose ref files.
getTrustLooseObjectStat
()

Get how far we can trust file attributes of loose ref files which are used to store org.eclipse.jgit.lib.Refs in org.eclipse.jgit.internal.storage.file.RefDirectory.

public CoreConfig.TrustStat

Returns:

how far we can trust file attributes of loose ref files.
getTrustLooseRefStat
()

Get how far we can trust file attributes of loose ref files which are used to store org.eclipse.jgit.lib.Refs in org.eclipse.jgit.internal.storage.file.RefDirectory.

public CoreConfig.TrustStat

Returns:

how far we can trust file attributes of packed-refs file.
getTrustPackedRefsStat
()

Get how far we can trust file attributes of packed-refs file which is used to store org.eclipse.jgit.lib.Refs in org.eclipse.jgit.internal.storage.file.RefDirectory.

public CoreConfig.TrustStat

Returns:

how far we can trust file attributes of packed-refs file.
getTrustPackStat
()

Get how far we can trust file attributes of packed-refs file which is used to store org.eclipse.jgit.lib.Refs in org.eclipse.jgit.internal.storage.file.RefDirectory.

public CoreConfig.TrustStat

Returns:

how far we can trust file attributes of the "tables.list" file.
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 storing org.eclipse.jgit.internal.storage.reftable.Reftables in org.eclipse.jgit.internal.storage.file.FileReftableDatabase.

private CoreConfig.TrustStat
private CoreConfig.TrustStat
private CoreConfig.TrustStat
private CoreConfig.TrustStat
private CoreConfig.TrustStat
private CoreConfig.TrustStat
private static CoreConfig.TrustStat
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait