Support specifying the parent for a cherry-pick in the REST API

When cherry-picking a merge, the REST API always selected the first
parent as reference. Sometimes users of the API want to choose a
specific parent just as they could on the command line using 'git
cherry-pick -m'. If the parent parameter isn't specified, it defaults
to 1.

Change-Id: I61dd0d9bee4a3c97354d52a18c66ae3567ab79fb
This commit is contained in:
Alice Kober-Sotzek
2016-10-12 13:13:54 +02:00
parent 861123bde0
commit f271c25fd9
7 changed files with 169 additions and 15 deletions

View File

@@ -17,4 +17,5 @@ package com.google.gerrit.extensions.api.changes;
public class CherryPickInput {
public String message;
public String destination;
public Integer parent;
}