Package org.eclipse.jgit.transport
Enum ReceiveCommand.Result
- All Implemented Interfaces:
Serializable
,Comparable<ReceiveCommand.Result>
- Enclosing class:
ReceiveCommand
Result of the update command.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe ref could not be locked and updated atomically; try again.The command has not yet been attempted by the server.The change was completed successfully.The update affectsHEAD
and cannot be permitted.One or more objects aren't in the repository.The server is configured to deny creation of this ref.The server is configured to deny deletion of this ref.The update is a non-fast-forward update and isn't permitted.Other failure; seeReceiveCommand.getMessage()
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReceiveCommand.Result
Returns the enum constant of this type with the specified name.static ReceiveCommand.Result[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NOT_ATTEMPTED
The command has not yet been attempted by the server. -
REJECTED_NOCREATE
The server is configured to deny creation of this ref. -
REJECTED_NODELETE
The server is configured to deny deletion of this ref. -
REJECTED_NONFASTFORWARD
The update is a non-fast-forward update and isn't permitted. -
REJECTED_CURRENT_BRANCH
The update affectsHEAD
and cannot be permitted. -
REJECTED_MISSING_OBJECT
One or more objects aren't in the repository.This is severe indication of either repository corruption on the server side, or a bug in the client wherein the client did not supply all required objects during the pack transfer.
-
REJECTED_OTHER_REASON
Other failure; seeReceiveCommand.getMessage()
. -
LOCK_FAILURE
The ref could not be locked and updated atomically; try again. -
OK
The change was completed successfully.
-
-
Constructor Details
-
Result
private Result()
-
-
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
-