public class RebaseChangeOp extends java.lang.Object implements BatchUpdateOp
Modifier and Type | Class and Description |
---|---|
static interface |
RebaseChangeOp.Factory |
Modifier and Type | Method and Description |
---|---|
PatchSet |
getPatchSet() |
PatchSet.Id |
getPatchSetId() |
org.eclipse.jgit.revwalk.RevCommit |
getRebasedCommit() |
void |
postUpdate(Context ctx)
Override this method to do something after the update e.g.
|
RebaseChangeOp |
setCheckAddPatchSetPermission(boolean checkAddPatchSetPermission) |
RebaseChangeOp |
setCommitterIdent(org.eclipse.jgit.lib.PersonIdent committerIdent) |
RebaseChangeOp |
setDetailedCommitMessage(boolean detailedCommitMessage) |
RebaseChangeOp |
setFireRevisionCreated(boolean fireRevisionCreated) |
RebaseChangeOp |
setForceContentMerge(boolean forceContentMerge) |
RebaseChangeOp |
setMatchAuthorToCommitterDate(boolean matchAuthorToCommitterDate) |
RebaseChangeOp |
setPostMessage(boolean postMessage) |
RebaseChangeOp |
setSendEmail(boolean sendEmail) |
RebaseChangeOp |
setValidate(boolean validate) |
boolean |
updateChange(ChangeContext ctx)
Override this method to modify a change.
|
void |
updateRepo(RepoContext ctx)
Override this method to update the repo.
|
public RebaseChangeOp setCommitterIdent(org.eclipse.jgit.lib.PersonIdent committerIdent)
public RebaseChangeOp setValidate(boolean validate)
public RebaseChangeOp setCheckAddPatchSetPermission(boolean checkAddPatchSetPermission)
public RebaseChangeOp setFireRevisionCreated(boolean fireRevisionCreated)
public RebaseChangeOp setForceContentMerge(boolean forceContentMerge)
public RebaseChangeOp setDetailedCommitMessage(boolean detailedCommitMessage)
public RebaseChangeOp setPostMessage(boolean postMessage)
public RebaseChangeOp setSendEmail(boolean sendEmail)
public RebaseChangeOp setMatchAuthorToCommitterDate(boolean matchAuthorToCommitterDate)
public void updateRepo(RepoContext ctx) throws MergeConflictException, InvalidChangeOperationException, RestApiException, java.io.IOException, NoSuchChangeException, PermissionBackendException
RepoOnlyOp
updateRepo
in interface RepoOnlyOp
ctx
- contextMergeConflictException
InvalidChangeOperationException
RestApiException
java.io.IOException
NoSuchChangeException
PermissionBackendException
public boolean updateChange(ChangeContext ctx) throws ResourceConflictException, java.io.IOException
BatchUpdateOp
updateChange
in interface BatchUpdateOp
ctx
- contextResourceConflictException
java.io.IOException
public void postUpdate(Context ctx)
RepoOnlyOp
postUpdate
in interface RepoOnlyOp
ctx
- contextpublic org.eclipse.jgit.revwalk.RevCommit getRebasedCommit()
public PatchSet.Id getPatchSetId()
public PatchSet getPatchSet()