Class PatchSetCreator
java.lang.Object
com.google.gerrit.server.restapi.change.PatchSetCreator
A utility class for creating a patch set on an existing change.
-
Method Summary
Modifier and TypeMethodDescriptioncreatePatchSetWithSuppliedTree
(Project.NameKey project, ChangeData destChange, org.eclipse.jgit.revwalk.RevCommit latestPatchset, List<org.eclipse.jgit.revwalk.RevCommit> parents, AccountInput author, List<ListChangesOption> outputOptions, org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.ObjectInserter oi, CodeReviewCommit.CodeReviewRevWalk revWalk, org.eclipse.jgit.lib.ObjectId commitTree, String commitMessage) void
validateChangeCanBeAppended
(ChangeData destChange, BranchNameKey destBranch)
-
Method Details
-
createPatchSetWithSuppliedTree
public ChangeInfo createPatchSetWithSuppliedTree(Project.NameKey project, ChangeData destChange, org.eclipse.jgit.revwalk.RevCommit latestPatchset, List<org.eclipse.jgit.revwalk.RevCommit> parents, AccountInput author, List<ListChangesOption> outputOptions, org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.ObjectInserter oi, CodeReviewCommit.CodeReviewRevWalk revWalk, org.eclipse.jgit.lib.ObjectId commitTree, String commitMessage) throws IOException, RestApiException, UpdateException -
validateChangeCanBeAppended
public void validateChangeCanBeAppended(ChangeData destChange, BranchNameKey destBranch) throws PreconditionFailedException - Throws:
PreconditionFailedException
-