public interface RepoContext extends Context
RepoOnlyOp.updateRepo(com.google.gerrit.server.update.RepoContext)
phase.Modifier and Type | Method and Description |
---|---|
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, getDb, getIdentifiedUser, getOrder, getProject, getRepository, getRevWalk, getTimeZone, getUser, getWhen
org.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
Callers should use this method instead of writing directly to the repository returned by
Context.getRepository()
.
cmd
- ref update command.IOException
- if an error occurred opening the repo.