- java.lang.Object
-
- java.lang.Enum<CoreConfig.TrustPackedRefsStat>
-
- org.eclipse.jgit.lib.CoreConfig.TrustPackedRefsStat
-
- All Implemented Interfaces:
Serializable,Comparable<CoreConfig.TrustPackedRefsStat>
- Enclosing class:
- CoreConfig
public static enum CoreConfig.TrustPackedRefsStat extends Enum<CoreConfig.TrustPackedRefsStat>
Permissible values forcore.trustPackedRefsStat.- Since:
- 6.1.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_OPENOpen and close the packed-refs file to refresh its file attributes and then trust it.ALWAYSTrust file attributes of the packed-refs file.NEVERDo not trust file attributes of the packed-refs file.UNSETcore.trustPackedRefsStatdefaults to this when it is not set
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CoreConfig.TrustPackedRefsStatvalueOf(String name)Returns the enum constant of this type with the specified name.static CoreConfig.TrustPackedRefsStat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEVER
public static final CoreConfig.TrustPackedRefsStat NEVER
Do not trust file attributes of the packed-refs file.
-
ALWAYS
public static final CoreConfig.TrustPackedRefsStat ALWAYS
Trust file attributes of the packed-refs file.
-
AFTER_OPEN
public static final CoreConfig.TrustPackedRefsStat AFTER_OPEN
Open and close the packed-refs file to refresh its file attributes and then trust it.
-
UNSET
public static final CoreConfig.TrustPackedRefsStat UNSET
core.trustPackedRefsStatdefaults to this when it is not set
-
-
Method Detail
-
values
public static CoreConfig.TrustPackedRefsStat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CoreConfig.TrustPackedRefsStat c : CoreConfig.TrustPackedRefsStat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CoreConfig.TrustPackedRefsStat valueOf(String name)
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
-
-