Enum Class PushForce
- All Implemented Interfaces:
Serializable,Comparable<PushForce>,Constable
How a push may overwrite commits on the remote branch.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOverwrite the remote branch whatever is on it (--force).Overwrite the remote branch only if it is still where the remote-tracking branch says (--force-with-lease): what somebody else pushed after the last fetch is never lost.Only a fast-forward: commits of the remote branch are never lost. -
Method Summary
-
Enum Constant Details
-
NONE
Only a fast-forward: commits of the remote branch are never lost. -
LEASE
Overwrite the remote branch only if it is still where the remote-tracking branch says (--force-with-lease): what somebody else pushed after the last fetch is never lost. Needs the remote-tracking branch (fetch first). -
FORCE
Overwrite the remote branch whatever is on it (--force).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-