Package org.eclipse.jgit.lib
Enum RebaseTodoLine.Action
- All Implemented Interfaces:
Serializable
,Comparable<RebaseTodoLine.Action>
- Enclosing class:
RebaseTodoLine
Describes rebase actions
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RebaseTodoLine.Action
toString()
toToken()
static RebaseTodoLine.Action
Returns the enum constant of this type with the specified name.static RebaseTodoLine.Action[]
values()
Returns an array containing the constants of this enum type, 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
-
-
Field Details
-
token
-
shortToken
-
-
Constructor Details
-
Action
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
toToken
- Returns:
- full action token name
-
toString
- Overrides:
toString
in classEnum<RebaseTodoLine.Action>
-
parse
- Parameters:
token
-- Returns:
- the Action
-