Package com.google.gerrit.server.edit
Class ModificationTarget.EditCommit
- java.lang.Object
-
- com.google.gerrit.server.edit.ModificationTarget.EditCommit
-
- All Implemented Interfaces:
ModificationTarget
- Enclosing interface:
- ModificationTarget
public static class ModificationTarget.EditCommit extends Object implements ModificationTarget
An existingChangeEdit
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ensureNewEditMayBeBasedOnTarget(Change change)
void
ensureTargetMayBeModifiedDespiteExistingEdit(ChangeEdit changeEdit)
PatchSet
getBasePatchset()
Patchset within whose context the modification happens.org.eclipse.jgit.revwalk.RevCommit
getCommit(org.eclipse.jgit.lib.Repository repository)
Commit to modify.
-
-
-
Method Detail
-
ensureNewEditMayBeBasedOnTarget
public void ensureNewEditMayBeBasedOnTarget(Change change)
- Specified by:
ensureNewEditMayBeBasedOnTarget
in interfaceModificationTarget
-
ensureTargetMayBeModifiedDespiteExistingEdit
public void ensureTargetMayBeModifiedDespiteExistingEdit(ChangeEdit changeEdit)
- Specified by:
ensureTargetMayBeModifiedDespiteExistingEdit
in interfaceModificationTarget
-
getCommit
public org.eclipse.jgit.revwalk.RevCommit getCommit(org.eclipse.jgit.lib.Repository repository) throws IOException
Description copied from interface:ModificationTarget
Commit to modify.- Specified by:
getCommit
in interfaceModificationTarget
- Throws:
IOException
-
getBasePatchset
public PatchSet getBasePatchset()
Description copied from interface:ModificationTarget
Patchset within whose context the modification happens. This also applies to change edits as each change edit is based on a specific patchset.- Specified by:
getBasePatchset
in interfaceModificationTarget
-
-