Package com.google.gerrit.server.submit
Enum CommitMergeStatus
- java.lang.Object
-
- java.lang.Enum<CommitMergeStatus>
-
- com.google.gerrit.server.submit.CommitMergeStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<CommitMergeStatus>
public enum CommitMergeStatus extends Enum<CommitMergeStatus>
Status codes set onCodeReviewCommit
s bySubmitStrategy
implementations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALREADY_MERGED
CANNOT_CHERRY_PICK_ROOT
CANNOT_REBASE_ROOT
CLEAN_MERGE
CLEAN_PICK
CLEAN_REBASE
EMPTY_COMMIT
MANUAL_RECURSIVE_MERGE
MISSING_DEPENDENCY
NOT_FAST_FORWARD
PATH_CONFLICT
REBASE_MERGE_CONFLICT
SKIPPED_IDENTICAL_TREE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
createMissingDependencyMessage(CurrentUser caller, com.google.inject.Provider<InternalChangeQuery> queryProvider, String commit, String otherCommit)
String
getDescription()
static CommitMergeStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static CommitMergeStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLEAN_MERGE
public static final CommitMergeStatus CLEAN_MERGE
-
CLEAN_PICK
public static final CommitMergeStatus CLEAN_PICK
-
CLEAN_REBASE
public static final CommitMergeStatus CLEAN_REBASE
-
ALREADY_MERGED
public static final CommitMergeStatus ALREADY_MERGED
-
PATH_CONFLICT
public static final CommitMergeStatus PATH_CONFLICT
-
REBASE_MERGE_CONFLICT
public static final CommitMergeStatus REBASE_MERGE_CONFLICT
-
SKIPPED_IDENTICAL_TREE
public static final CommitMergeStatus SKIPPED_IDENTICAL_TREE
-
MISSING_DEPENDENCY
public static final CommitMergeStatus MISSING_DEPENDENCY
-
MANUAL_RECURSIVE_MERGE
public static final CommitMergeStatus MANUAL_RECURSIVE_MERGE
-
CANNOT_CHERRY_PICK_ROOT
public static final CommitMergeStatus CANNOT_CHERRY_PICK_ROOT
-
CANNOT_REBASE_ROOT
public static final CommitMergeStatus CANNOT_REBASE_ROOT
-
NOT_FAST_FORWARD
public static final CommitMergeStatus NOT_FAST_FORWARD
-
EMPTY_COMMIT
public static final CommitMergeStatus EMPTY_COMMIT
-
-
Method Detail
-
values
public static CommitMergeStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommitMergeStatus c : CommitMergeStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommitMergeStatus valueOf(String name)
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
-
getDescription
public String getDescription()
-
createMissingDependencyMessage
public static String createMissingDependencyMessage(CurrentUser caller, com.google.inject.Provider<InternalChangeQuery> queryProvider, String commit, String otherCommit)
-
-