Enum Class ChangeKind
- All Implemented Interfaces:
Serializable
,Comparable<ChangeKind>
,java.lang.constant.Constable
Operation performed by a change relative to its parent.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConflict-free change of first (left) parent of a merge commit.Same tree, parent tree, same commit message.Same tree and same parent tree.Nontrivial content changes.Conflict-free merge between the new parent and the prior patch set.Conflict-free merge between the new parent and the prior patch set, accompanied with a change to commit message. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isMergeFirstParentUpdate
(boolean isMerge) boolean
boolean
boolean
boolean
matches
(ChangeKind changeKind, boolean isMerge) static ChangeKind
Returns the enum constant of this class with the specified name.static ChangeKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REWORK
Nontrivial content changes. -
TRIVIAL_REBASE
Conflict-free merge between the new parent and the prior patch set. -
TRIVIAL_REBASE_WITH_MESSAGE_UPDATE
Conflict-free merge between the new parent and the prior patch set, accompanied with a change to commit message. -
MERGE_FIRST_PARENT_UPDATE
Conflict-free change of first (left) parent of a merge commit. -
NO_CODE_CHANGE
Same tree and same parent tree. -
NO_CHANGE
Same tree, parent tree, same commit message.
-
-
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
-
matches
-
isNoCodeChange
public boolean isNoCodeChange() -
isTrivialRebase
public boolean isTrivialRebase() -
isTrivialRebaseWithMessageUpdate
public boolean isTrivialRebaseWithMessageUpdate() -
isMergeFirstParentUpdate
public boolean isMergeFirstParentUpdate(boolean isMerge)
-