public interface RepoContext extends Context
RepoOnlyOp.updateRepo(com.google.gerrit.server.update.RepoContext) phase.| Modifier and Type | Method and Description |
|---|---|
default void |
addRefUpdate(org.eclipse.jgit.lib.ObjectId oldId,
org.eclipse.jgit.lib.ObjectId newId,
String refName)
Add a command to the pending list of commands.
|
void |
addRefUpdate(org.eclipse.jgit.transport.ReceiveCommand cmd)
Add a command to the pending list of commands.
|
org.eclipse.jgit.lib.ObjectInserter |
getInserter() |
getAccount, getAccountId, getIdentifiedUser, getNotify, getProject, getRepoView, getRevWalk, getTimeZone, getUser, getWhenorg.eclipse.jgit.lib.ObjectInserter getInserter()
throws IOException
Context.getRevWalk() is able to read back objects inserted by this inserter without flushing
first.IOException - if an error occurred opening the repo.void addRefUpdate(org.eclipse.jgit.transport.ReceiveCommand cmd)
throws IOException
Adding commands to the RepoContext is the only way of updating refs in the
repository from a BatchUpdateOp.
cmd - ref update command.IOException - if an error occurred opening the repo.default void addRefUpdate(org.eclipse.jgit.lib.ObjectId oldId,
org.eclipse.jgit.lib.ObjectId newId,
String refName)
throws IOException
Adding commands to the RepoContext is the only way of updating refs in the
repository from a BatchUpdateOp.
oldId - the old object ID; must not be null. Use ObjectId.zeroId() for ref
creation.newId - the new object ID; must not be null. Use ObjectId.zeroId() for ref
deletion.refName - the ref name.IOException - if an error occurred opening the repo.