Add RebaseOperationReword, and make RebaseOperationType a stringer #420

Merged
josharian merged 2 commits from rebase-operation-type-stringer into master 2019-01-05 05:05:44 -06:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit 21fd4ad5f6 - Show all commits

View File

@ -16,6 +16,8 @@ type RebaseOperationType uint
const ( const (
// RebaseOperationPick The given commit is to be cherry-picked. The client should commit the changes and continue if there are no conflicts. // RebaseOperationPick The given commit is to be cherry-picked. The client should commit the changes and continue if there are no conflicts.
RebaseOperationPick RebaseOperationType = C.GIT_REBASE_OPERATION_PICK RebaseOperationPick RebaseOperationType = C.GIT_REBASE_OPERATION_PICK
// RebaseOperationReword The given commit is to be cherry-picked, but the client should prompt the user to provide an updated commit message.
RebaseOperationReword RebaseOperationType = C.GIT_REBASE_OPERATION_REWORD
// RebaseOperationEdit The given commit is to be cherry-picked, but the client should stop to allow the user to edit the changes before committing them. // RebaseOperationEdit The given commit is to be cherry-picked, but the client should stop to allow the user to edit the changes before committing them.
RebaseOperationEdit RebaseOperationType = C.GIT_REBASE_OPERATION_EDIT RebaseOperationEdit RebaseOperationType = C.GIT_REBASE_OPERATION_EDIT
// RebaseOperationSquash The given commit is to be squashed into the previous commit. The commit message will be merged with the previous message. // RebaseOperationSquash The given commit is to be squashed into the previous commit. The commit message will be merged with the previous message.