public enum GitRefUpdateResult extends Enum<GitRefUpdateResult>
Enum.EnumDesc<E extends Enum<E>>
Enum Constant and Description |
---|
AWAITING_REPORT
Push process is awaiting update report from remote repository.
|
FAST_FORWARD
The ref was updated/deleted in a fast-forward way.
|
FORCED
The ref had to be forcefully updated/deleted.
|
IO_FAILURE
The ref was probably not updated/deleted because of I/O error.
|
LOCK_FAILURE
The ref could not be locked for update/delete.
|
NEW
The ref was created locally for an update, but ignored for delete.
|
NO_CHANGE
Same value already stored.
|
NON_EXISTING
Remote ref didn't exist.
|
NOT_ATTEMPTED
The ref update/delete has not been attempted by the caller.
|
OK
Remote ref was successfully updated.
|
REJECTED
Not a fast-forward and not stored.
|
REJECTED_CURRENT_BRANCH
Rejected because trying to delete the current branch.
|
REJECTED_MISSING_OBJECT
One or more objects aren't in the repository.
|
REJECTED_NODELETE
Remote ref update was rejected, because remote side doesn't
support/allow deleting refs.
|
REJECTED_NONFASTFORWARD
Remote ref update was rejected, as it would cause non fast-forward
update.
|
REJECTED_OTHER_REASON
Remote ref update was rejected for other reason.
|
REJECTED_REMOTE_CHANGED
Remote ref update was rejected, because old object id on remote
repository wasn't the same as defined expected old object.
|
RENAMED
The ref was renamed from another name.
|
UP_TO_DATE
Remote ref was up to date, there was no need to update anything.
|
Modifier and Type | Method and Description |
---|---|
static GitRefUpdateResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GitRefUpdateResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GitRefUpdateResult NOT_ATTEMPTED
public static final GitRefUpdateResult LOCK_FAILURE
This is generally a transient failure and is usually caused by another process trying to access the ref at the same time as this process was trying to update it. It is possible a future operation will be successful.
public static final GitRefUpdateResult NO_CHANGE
Both the old value and the new value are identical. No change was necessary for an update. For delete the branch is removed.
public static final GitRefUpdateResult NEW
The ref did not exist when the update started, but it was created successfully with the new value.
public static final GitRefUpdateResult FORCED
The ref already existed but its old value was not fully merged into the new value. The configuration permitted a forced update to take place, so ref now contains the new value. History associated with the objects not merged may no longer be reachable.
public static final GitRefUpdateResult FAST_FORWARD
The tracking ref already existed and its old value was fully merged into the new value. No history was made unreachable.
public static final GitRefUpdateResult REJECTED
The tracking ref already existed but its old value was not fully merged into the new value. The configuration did not allow a forced update/delete to take place, so ref still contains the old value. No previous history was lost.
public static final GitRefUpdateResult REJECTED_CURRENT_BRANCH
Has no meaning for update.
public static final GitRefUpdateResult IO_FAILURE
Unexpected I/O error occurred when writing new ref. Such error may result in uncertain state, but most probably ref was not updated.
This kind of error doesn't include GitRefUpdateResult.LOCK_FAILURE
, which is a
different case.
public static final GitRefUpdateResult RENAMED
public static final GitRefUpdateResult UP_TO_DATE
public static final GitRefUpdateResult REJECTED_NONFASTFORWARD
public static final GitRefUpdateResult REJECTED_NODELETE
public static final GitRefUpdateResult REJECTED_REMOTE_CHANGED
public static final GitRefUpdateResult REJECTED_OTHER_REASON
public static final GitRefUpdateResult REJECTED_MISSING_OBJECT
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.
public static final GitRefUpdateResult NON_EXISTING
public static final GitRefUpdateResult AWAITING_REPORT
public static final GitRefUpdateResult OK
public static GitRefUpdateResult[] values()
public static GitRefUpdateResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null