public static enum RefUpdate.Result extends Enum<RefUpdate.Result>
Enum Constant and Description |
---|
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.
|
NOT_ATTEMPTED
The ref update/delete has not been attempted by the caller.
|
REJECTED
Not a fast-forward and not stored.
|
REJECTED_CURRENT_BRANCH
Rejected because trying to delete the current branch.
|
RENAMED
The ref was renamed from another name
|
Modifier and Type | Method and Description |
---|---|
static RefUpdate.Result |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RefUpdate.Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RefUpdate.Result NOT_ATTEMPTED
public static final RefUpdate.Result 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 RefUpdate.Result 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 RefUpdate.Result NEW
The ref did not exist when the update started, but it was created successfully with the new value.
public static final RefUpdate.Result 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 RefUpdate.Result 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 RefUpdate.Result 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 RefUpdate.Result REJECTED_CURRENT_BRANCH
Has no meaning for update.
public static final RefUpdate.Result 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 LOCK_FAILURE
, which is a
different case.
public static final RefUpdate.Result RENAMED
public static RefUpdate.Result[] values()
for (RefUpdate.Result c : RefUpdate.Result.values()) System.out.println(c);
public static RefUpdate.Result 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 nullCopyright © 2015 Eclipse JGit Project. All rights reserved.