- All Implemented Interfaces:
Serializable
,Comparable<RebaseTodoLine.Action>
,java.lang.constant.Constable
- Enclosing class:
- RebaseTodoLine
Describes rebase actions
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RebaseTodoLine.Action
Parse a tokentoString()
toToken()
Get full action token namestatic RebaseTodoLine.Action
Returns the enum constant of this class with the specified name.static RebaseTodoLine.Action[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PICK
Use commit -
REWORD
Use commit, but edit the commit message -
EDIT
Use commit, but stop for amending -
SQUASH
Use commit, but meld into previous commit -
FIXUP
like "squash", but discard this commit's log message -
COMMENT
A comment in the file. Also blank lines (or lines containing only whitespaces) are reported as comments
-
-
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
-
toToken
Get full action token name- Returns:
- full action token name
-
toString
- Overrides:
toString
in classEnum<RebaseTodoLine.Action>
-
parse
Parse a token- Parameters:
token
- token to parse- Returns:
- the Action
-