Package org.eclipse.jgit.transport
Enum Class RemoteRefUpdate.Status
- All Implemented Interfaces:
Serializable
,Comparable<RemoteRefUpdate.Status>
,Constable
- Enclosing class:
- RemoteRefUpdate
Represent current status of a remote ref update.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPush process is awaiting update report from remote repository.Remote ref didn't exist.Push process hasn't yet attempted to update this ref.Remote ref was successfully updated.Remote ref update was rejected, because remote side doesn't support/allow deleting refs.Remote ref update was rejected, as it would cause non fast-forward update.Remote ref update was rejected for other reason, possibly described inRemoteRefUpdate.getMessage()
.Remote ref update was rejected, because old object id on remote repository wasn't the same as defined expected old object.Remote ref was up to date, there was no need to update anything. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RemoteRefUpdate.Status
Returns the enum constant of this class with the specified name.static RemoteRefUpdate.Status[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_ATTEMPTED
Push process hasn't yet attempted to update this ref. This is the default status, prior to push process execution. -
UP_TO_DATE
Remote ref was up to date, there was no need to update anything. -
REJECTED_NONFASTFORWARD
Remote ref update was rejected, as it would cause non fast-forward update. -
REJECTED_NODELETE
Remote ref update was rejected, because remote side doesn't support/allow deleting refs. -
REJECTED_REMOTE_CHANGED
Remote ref update was rejected, because old object id on remote repository wasn't the same as defined expected old object. -
REJECTED_OTHER_REASON
Remote ref update was rejected for other reason, possibly described inRemoteRefUpdate.getMessage()
. -
NON_EXISTING
Remote ref didn't exist. Can occur on delete request of a non existing ref. -
AWAITING_REPORT
Push process is awaiting update report from remote repository. This is a temporary state or state after critical error in push process. -
OK
Remote ref was successfully updated.
-
-
Constructor Details
-
Status
private Status()
-
-
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
-