class documentation

class RebaseTodoCommand(Enum):

Constructor: RebaseTodoCommand.from_string(s)

View In Hierarchy

Enum for rebase todo commands.

Class Method from_string Parse a command from its string representation.
Constant BREAK Undocumented
Constant DROP Undocumented
Constant EDIT Undocumented
Constant EXEC Undocumented
Constant FIXUP Undocumented
Constant LABEL Undocumented
Constant MERGE Undocumented
Constant PICK Undocumented
Constant RESET Undocumented
Constant REWORD Undocumented
Constant SQUASH Undocumented
def from_string(cls, s: str) -> RebaseTodoCommand:

Parse a command from its string representation.

Parameters
s:strCommand string (can be abbreviated)
Returns
RebaseTodoCommandRebaseTodoCommand enum value
Raises
ValueErrorIf command is not recognized
BREAK: str =

Undocumented

Value
'break'
DROP: str =

Undocumented

Value
'drop'
EDIT: str =

Undocumented

Value
'edit'
EXEC: str =

Undocumented

Value
'exec'
FIXUP: str =

Undocumented

Value
'fixup'
LABEL: str =

Undocumented

Value
'label'
MERGE: str =

Undocumented

Value
'merge'
PICK: str =

Undocumented

Value
'pick'
RESET: str =

Undocumented

Value
'reset'
REWORD: str =

Undocumented

Value
'reword'
SQUASH: str =

Undocumented

Value
'squash'