Package org.eclipse.jgit.transport
Enum TransferConfig.FsckMode
- All Implemented Interfaces:
Serializable
,Comparable<TransferConfig.FsckMode>
- Enclosing class:
TransferConfig
A git configuration value for how to handle a fsck failure of a particular kind.
Used in e.g. fsck.missingEmail.
- Since:
- 4.9
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TransferConfig.FsckMode
Returns the enum constant of this type with the specified name.static TransferConfig.FsckMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ERROR
Treat it as an error (the default). -
WARN
Issue a warning (in fact, jgit treats this like IGNORE, but git itself does warn). -
IGNORE
Ignore the error.
-
-
Constructor Details
-
FsckMode
private FsckMode()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-