| Modifier and Type | Class and Description |
|---|---|
| public static enum | RebaseTodoLine.
Describes rebase actions |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv RebaseTodoLine. | |
| pack-priv String | |
| pack-priv final AbbreviatedObjectId | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | RebaseTodoLine(RebaseTodoLine.
a commit, String org. object.a shortMessage)java. object.Create a new non-comment line |
| Modifier and Type | Method and Description |
|---|---|
| private static IllegalArgumentException | |
| public RebaseTodoLine. | |
| public String | Returns: a comment. If the line is a comment line then the comment is returned. Lines starting with # or blank lines or lines containing only spaces and tabs are considered as comment lines. The complete line is returned (e.g. including the '#')Get a comment |
| public AbbreviatedObjectId | Returns: abbreviated commit SHA-1 of commit that action will be performed onGet abbreviated commit SHA-1 of commit that action will be performed on |
| public String | Returns: the first line of the commit message of the commit the action will be performed on.Get the first line of the commit message of the commit the action will be performed on. |
| public void | |
| public void | setComment(String
the comment newComment)
Set a comment for this line that is used if this line's
|
| public void | |
| public String |
| action | back to summary |
|---|---|
| pack-priv RebaseTodoLine. | |
| comment | back to summary |
|---|---|
| pack-priv String comment | |
| commit | back to summary |
|---|---|
| pack-priv final AbbreviatedObjectId commit | |
| shortMessage | back to summary |
|---|---|
| pack-priv String shortMessage | |
| RebaseTodoLine | back to summary |
|---|---|
| public RebaseTodoLine(String newComment) Create a new comment line
| |
| RebaseTodoLine | back to summary |
|---|---|
| public RebaseTodoLine(RebaseTodoLine. Create a new non-comment line
| |
| createInvalidCommentException | back to summary |
|---|---|
| private static IllegalArgumentException createInvalidCommentException(String newComment) | |
| getAction | back to summary |
|---|---|
| public RebaseTodoLine. Get rebase action type
| |
| getComment | back to summary |
|---|---|
| public String getComment() Get a comment
| |
| getCommit | back to summary |
|---|---|
| public AbbreviatedObjectId getCommit() Get abbreviated commit SHA-1 of commit that action will be performed on
| |
| getShortMessage | back to summary |
|---|---|
| public String getShortMessage() Get the first line of the commit message of the commit the action will be performed on.
| |
| setAction | back to summary |
|---|---|
| public void setAction(RebaseTodoLine. Set the action. It's not allowed to set a non-comment action on a line which was a comment line before. But you are allowed to set the comment action on a non-comment line and afterwards change the action back to non-comment.
| |
| setComment | back to summary |
|---|---|
| public void setComment(String newComment)
Set a comment for this line that is used if this line's
setComment(null) A valid comment either starts with a hash (i.e. '#'), is an
empty string, or consists of only spaces and tabs.If the argument newComment doesn't match these requirements
an Exception is thrown.
| |
| setShortMessage | back to summary |
|---|---|
| public void setShortMessage(String shortMessage) Set short message
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final RebaseTodoLine. | COMMENT
A comment in the file. |
| public static final RebaseTodoLine. | EDIT
Use commit, but stop for amending |
| public static final RebaseTodoLine. | FIXUP
like "squash", but discard this commit's log message |
| public static final RebaseTodoLine. | PICK
Use commit |
| public static final RebaseTodoLine. | REWORD
Use commit, but edit the commit message |
| private final String | |
| public static final RebaseTodoLine. | SQUASH
Use commit, but meld into previous commit |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static RebaseTodoLine. | |
| public String | toString()
Overrides java. Returns the name of this enum constant, as contained in the declaration. |
| public String | |
| public static RebaseTodoLine. | |
| public static RebaseTodoLine. |
| COMMENT | back to summary |
|---|---|
| public static final RebaseTodoLine. A comment in the file. Also blank lines (or lines containing only whitespaces) are reported as comments | |
| EDIT | back to summary |
|---|---|
| public static final RebaseTodoLine. Use commit, but stop for amending | |
| FIXUP | back to summary |
|---|---|
| public static final RebaseTodoLine. like "squash", but discard this commit's log message | |
| PICK | back to summary |
|---|---|
| public static final RebaseTodoLine. Use commit | |
| REWORD | back to summary |
|---|---|
| public static final RebaseTodoLine. Use commit, but edit the commit message | |
| shortToken | back to summary |
|---|---|
| private final String shortToken | |
| SQUASH | back to summary |
|---|---|
| public static final RebaseTodoLine. Use commit, but meld into previous commit | |
| token | back to summary |
|---|---|
| private final String token | |
| Action | back to summary |
|---|---|
| private Action(String token, String shortToken) | |
| parse | back to summary |
|---|---|
| public static RebaseTodoLine. Parse a token
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| toToken | back to summary |
|---|---|
| public String toToken() Get full action token name
| |
| valueOf | back to summary |
|---|---|
| public static RebaseTodoLine. | |
| values | back to summary |
|---|---|
| public static RebaseTodoLine. | |