Package com.google.gerrit.server.edit
Class ModificationTarget.PatchsetCommit
java.lang.Object
com.google.gerrit.server.edit.ModificationTarget.PatchsetCommit
- All Implemented Interfaces:
ModificationTarget
- Enclosing interface:
- ModificationTarget
A specific patchset commit is the target of the modification.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.gerrit.server.edit.ModificationTarget
ModificationTarget.EditCommit, ModificationTarget.PatchsetCommit -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidPatchset within whose context the modification happens.org.eclipse.jgit.revwalk.RevCommitgetCommit(org.eclipse.jgit.lib.Repository repository) Commit to modify.
-
Method Details
-
ensureTargetMayBeModifiedDespiteExistingEdit
public void ensureTargetMayBeModifiedDespiteExistingEdit(ChangeEdit changeEdit) throws InvalidChangeOperationException - Specified by:
ensureTargetMayBeModifiedDespiteExistingEditin interfaceModificationTarget- Throws:
InvalidChangeOperationException
-
ensureNewEditMayBeBasedOnTarget
- Specified by:
ensureNewEditMayBeBasedOnTargetin interfaceModificationTarget- Throws:
InvalidChangeOperationException
-
getCommit
public org.eclipse.jgit.revwalk.RevCommit getCommit(org.eclipse.jgit.lib.Repository repository) throws IOException Description copied from interface:ModificationTargetCommit to modify.- Specified by:
getCommitin interfaceModificationTarget- Throws:
IOException
-
getBasePatchset
Description copied from interface:ModificationTargetPatchset within whose context the modification happens. This also applies to change edits as each change edit is based on a specific patchset.- Specified by:
getBasePatchsetin interfaceModificationTarget
-