Add submit strategy that rebases the change if necessary
Add a new submit strategy 'Rebase If Necessary' that automatically rebases the changes on submit if needed. If a change gets rebased the rebased commit is added as a new patch set to the change. Bug: issue 1123 Bug: issue 353 Change-Id: If38747a5ea93bb9baff7695bab25670be135f777 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:

committed by
Gerrit Code Review

parent
a54984665d
commit
00aa4f05ee
@@ -68,6 +68,7 @@ public interface AdminConstants extends Constants {
|
||||
String projectSubmitType_FAST_FORWARD_ONLY();
|
||||
String projectSubmitType_MERGE_ALWAYS();
|
||||
String projectSubmitType_MERGE_IF_NECESSARY();
|
||||
String projectSubmitType_REBASE_IF_NECESSARY();
|
||||
String projectSubmitType_CHERRY_PICK();
|
||||
|
||||
String projectState_ACTIVE();
|
||||
|
@@ -46,6 +46,7 @@ headingAgreements = Contributor Agreements
|
||||
|
||||
projectSubmitType_FAST_FORWARD_ONLY = Fast Forward Only
|
||||
projectSubmitType_MERGE_IF_NECESSARY = Merge If Necessary
|
||||
projectSubmitType_REBASE_IF_NECESSARY = Rebase If Necessary
|
||||
projectSubmitType_MERGE_ALWAYS = Always Merge
|
||||
projectSubmitType_CHERRY_PICK = Cherry Pick
|
||||
|
||||
|
@@ -45,6 +45,8 @@ public class Util {
|
||||
return C.projectSubmitType_FAST_FORWARD_ONLY();
|
||||
case MERGE_IF_NECESSARY:
|
||||
return C.projectSubmitType_MERGE_IF_NECESSARY();
|
||||
case REBASE_IF_NECESSARY:
|
||||
return C.projectSubmitType_REBASE_IF_NECESSARY();
|
||||
case MERGE_ALWAYS:
|
||||
return C.projectSubmitType_MERGE_ALWAYS();
|
||||
case CHERRY_PICK:
|
||||
|
Reference in New Issue
Block a user