Package com.google.gerrit.server.git
Class DelegateRepository
- java.lang.Object
- 
- org.eclipse.jgit.lib.Repository
- 
- com.google.gerrit.server.git.DelegateRepository
 
 
- 
- All Implemented Interfaces:
- AutoCloseable
 - Direct Known Subclasses:
- PermissionAwareRepository
 
 public class DelegateRepository extends org.eclipse.jgit.lib.RepositoryWrapper aroundRepositorythat delegates all calls to the wrappedRepository.
- 
- 
Field SummaryFields Modifier and Type Field Description protected org.eclipse.jgit.lib.Repositorydelegate
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedDelegateRepository(org.eclipse.jgit.lib.Repository delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidautoGC(org.eclipse.jgit.lib.ProgressMonitor monitor)voidclose()voidcreate()voidcreate(boolean bare)org.eclipse.jgit.attributes.AttributesNodeProvidercreateAttributesNodeProvider()voidfireEvent(org.eclipse.jgit.events.RepositoryEvent<?> event)Set<org.eclipse.jgit.lib.ObjectId>getAdditionalHaves()Map<String,org.eclipse.jgit.lib.Ref>getAllRefs()Deprecated.Map<org.eclipse.jgit.lib.AnyObjectId,Set<org.eclipse.jgit.lib.Ref>>getAllRefsByPeeledObjectId()StringgetBranch()org.eclipse.jgit.lib.StoredConfiggetConfig()FilegetDirectory()org.eclipse.jgit.util.FSgetFS()StringgetFullBranch()StringgetGitwebDescription()StringgetIdentifier()FilegetIndexFile()org.eclipse.jgit.events.ListenerListgetListenerList()org.eclipse.jgit.lib.ObjectDatabasegetObjectDatabase()org.eclipse.jgit.lib.RefDatabasegetRefDatabase()org.eclipse.jgit.lib.ReflogReadergetReflogReader(String refName)StringgetRemoteName(String refName)Set<String>getRemoteNames()org.eclipse.jgit.lib.RepositoryStategetRepositoryState()Map<String,org.eclipse.jgit.lib.Ref>getTags()Deprecated.FilegetWorkTree()booleanhasObject(org.eclipse.jgit.lib.AnyObjectId objectId)Deprecated.voidincrementOpen()booleanisBare()org.eclipse.jgit.dircache.DirCachelockDirCache()org.eclipse.jgit.lib.ObjectInserternewObjectInserter()org.eclipse.jgit.lib.ObjectReadernewObjectReader()voidnotifyIndexChanged(boolean internal)org.eclipse.jgit.lib.ObjectLoaderopen(org.eclipse.jgit.lib.AnyObjectId objectId)org.eclipse.jgit.lib.ObjectLoaderopen(org.eclipse.jgit.lib.AnyObjectId objectId, int typeHint)org.eclipse.jgit.revwalk.RevCommitparseCommit(org.eclipse.jgit.lib.AnyObjectId id)org.eclipse.jgit.lib.Refpeel(org.eclipse.jgit.lib.Ref ref)Deprecated.org.eclipse.jgit.lib.ObjectIdreadCherryPickHead()StringreadCommitEditMsg()org.eclipse.jgit.dircache.DirCachereadDirCache()StringreadMergeCommitMsg()List<org.eclipse.jgit.lib.ObjectId>readMergeHeads()org.eclipse.jgit.lib.ObjectIdreadOrigHead()List<org.eclipse.jgit.lib.RebaseTodoLine>readRebaseTodo(String path, boolean includeComments)org.eclipse.jgit.lib.ObjectIdreadRevertHead()StringreadSquashCommitMsg()org.eclipse.jgit.lib.RefRenamerenameRef(String fromRef, String toRef)org.eclipse.jgit.lib.ObjectIdresolve(String revstr)voidscanForRepoChanges()voidsetGitwebDescription(String description)StringshortenRemoteBranchName(String refName)Stringsimplify(String revstr)org.eclipse.jgit.lib.RefUpdateupdateRef(String ref)org.eclipse.jgit.lib.RefUpdateupdateRef(String ref, boolean detach)voidwriteCherryPickHead(org.eclipse.jgit.lib.ObjectId head)voidwriteCommitEditMsg(String msg)voidwriteMergeCommitMsg(String msg)voidwriteMergeHeads(List<? extends org.eclipse.jgit.lib.ObjectId> heads)voidwriteOrigHead(org.eclipse.jgit.lib.ObjectId head)voidwriteRebaseTodoFile(String path, List<org.eclipse.jgit.lib.RebaseTodoLine> steps, boolean append)voidwriteRevertHead(org.eclipse.jgit.lib.ObjectId head)voidwriteSquashCommitMsg(String msg)
 
- 
- 
- 
Method Detail- 
createpublic void create(boolean bare) throws IOException- Specified by:
- createin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
getIdentifierpublic String getIdentifier() - Specified by:
- getIdentifierin class- org.eclipse.jgit.lib.Repository
 
 - 
getObjectDatabasepublic org.eclipse.jgit.lib.ObjectDatabase getObjectDatabase() - Specified by:
- getObjectDatabasein class- org.eclipse.jgit.lib.Repository
 
 - 
getRefDatabasepublic org.eclipse.jgit.lib.RefDatabase getRefDatabase() - Specified by:
- getRefDatabasein class- org.eclipse.jgit.lib.Repository
 
 - 
getConfigpublic org.eclipse.jgit.lib.StoredConfig getConfig() - Specified by:
- getConfigin class- org.eclipse.jgit.lib.Repository
 
 - 
createAttributesNodeProviderpublic org.eclipse.jgit.attributes.AttributesNodeProvider createAttributesNodeProvider() - Specified by:
- createAttributesNodeProviderin class- org.eclipse.jgit.lib.Repository
 
 - 
scanForRepoChangespublic void scanForRepoChanges() throws IOException- Specified by:
- scanForRepoChangesin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
notifyIndexChangedpublic void notifyIndexChanged(boolean internal) - Specified by:
- notifyIndexChangedin class- org.eclipse.jgit.lib.Repository
 
 - 
getReflogReaderpublic org.eclipse.jgit.lib.ReflogReader getReflogReader(String refName) throws IOException - Specified by:
- getReflogReaderin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
getListenerListpublic org.eclipse.jgit.events.ListenerList getListenerList() - Overrides:
- getListenerListin class- org.eclipse.jgit.lib.Repository
 
 - 
fireEventpublic void fireEvent(org.eclipse.jgit.events.RepositoryEvent<?> event) - Overrides:
- fireEventin class- org.eclipse.jgit.lib.Repository
 
 - 
createpublic void create() throws IOException- Overrides:
- createin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
getDirectorypublic File getDirectory() - Overrides:
- getDirectoryin class- org.eclipse.jgit.lib.Repository
 
 - 
newObjectInserterpublic org.eclipse.jgit.lib.ObjectInserter newObjectInserter() - Overrides:
- newObjectInserterin class- org.eclipse.jgit.lib.Repository
 
 - 
newObjectReaderpublic org.eclipse.jgit.lib.ObjectReader newObjectReader() - Overrides:
- newObjectReaderin class- org.eclipse.jgit.lib.Repository
 
 - 
getFSpublic org.eclipse.jgit.util.FS getFS() - Overrides:
- getFSin class- org.eclipse.jgit.lib.Repository
 
 - 
hasObject@Deprecated public boolean hasObject(org.eclipse.jgit.lib.AnyObjectId objectId) Deprecated.- Overrides:
- hasObjectin class- org.eclipse.jgit.lib.Repository
 
 - 
openpublic org.eclipse.jgit.lib.ObjectLoader open(org.eclipse.jgit.lib.AnyObjectId objectId, int typeHint) throws org.eclipse.jgit.errors.MissingObjectException, org.eclipse.jgit.errors.IncorrectObjectTypeException, IOException- Overrides:
- openin class- org.eclipse.jgit.lib.Repository
- Throws:
- org.eclipse.jgit.errors.MissingObjectException
- org.eclipse.jgit.errors.IncorrectObjectTypeException
- IOException
 
 - 
incrementOpenpublic void incrementOpen() - Overrides:
- incrementOpenin class- org.eclipse.jgit.lib.Repository
 
 - 
closepublic void close() - Specified by:
- closein interface- AutoCloseable
- Overrides:
- closein class- org.eclipse.jgit.lib.Repository
 
 - 
getFullBranchpublic String getFullBranch() throws IOException - Overrides:
- getFullBranchin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
getBranchpublic String getBranch() throws IOException - Overrides:
- getBranchin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
getAllRefs@Deprecated public Map<String,org.eclipse.jgit.lib.Ref> getAllRefs() Deprecated.- Overrides:
- getAllRefsin class- org.eclipse.jgit.lib.Repository
 
 - 
getTags@Deprecated public Map<String,org.eclipse.jgit.lib.Ref> getTags() Deprecated.- Overrides:
- getTagsin class- org.eclipse.jgit.lib.Repository
 
 - 
lockDirCachepublic org.eclipse.jgit.dircache.DirCache lockDirCache() throws org.eclipse.jgit.errors.NoWorkTreeException, org.eclipse.jgit.errors.CorruptObjectException, IOException- Overrides:
- lockDirCachein class- org.eclipse.jgit.lib.Repository
- Throws:
- org.eclipse.jgit.errors.NoWorkTreeException
- org.eclipse.jgit.errors.CorruptObjectException
- IOException
 
 - 
autoGCpublic void autoGC(org.eclipse.jgit.lib.ProgressMonitor monitor) - Overrides:
- autoGCin class- org.eclipse.jgit.lib.Repository
 
 - 
getAdditionalHavespublic Set<org.eclipse.jgit.lib.ObjectId> getAdditionalHaves() - Overrides:
- getAdditionalHavesin class- org.eclipse.jgit.lib.Repository
 
 - 
getAllRefsByPeeledObjectIdpublic Map<org.eclipse.jgit.lib.AnyObjectId,Set<org.eclipse.jgit.lib.Ref>> getAllRefsByPeeledObjectId() - Overrides:
- getAllRefsByPeeledObjectIdin class- org.eclipse.jgit.lib.Repository
 
 - 
getIndexFilepublic File getIndexFile() throws org.eclipse.jgit.errors.NoWorkTreeException - Overrides:
- getIndexFilein class- org.eclipse.jgit.lib.Repository
- Throws:
- org.eclipse.jgit.errors.NoWorkTreeException
 
 - 
getRepositoryStatepublic org.eclipse.jgit.lib.RepositoryState getRepositoryState() - Overrides:
- getRepositoryStatein class- org.eclipse.jgit.lib.Repository
 
 - 
isBarepublic boolean isBare() - Overrides:
- isBarein class- org.eclipse.jgit.lib.Repository
 
 - 
getWorkTreepublic File getWorkTree() throws org.eclipse.jgit.errors.NoWorkTreeException - Overrides:
- getWorkTreein class- org.eclipse.jgit.lib.Repository
- Throws:
- org.eclipse.jgit.errors.NoWorkTreeException
 
 - 
getRemoteNamepublic String getRemoteName(String refName) - Overrides:
- getRemoteNamein class- org.eclipse.jgit.lib.Repository
 
 - 
getGitwebDescriptionpublic String getGitwebDescription() throws IOException - Overrides:
- getGitwebDescriptionin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
getRemoteNamespublic Set<String> getRemoteNames() - Overrides:
- getRemoteNamesin class- org.eclipse.jgit.lib.Repository
 
 - 
openpublic org.eclipse.jgit.lib.ObjectLoader open(org.eclipse.jgit.lib.AnyObjectId objectId) throws org.eclipse.jgit.errors.MissingObjectException, IOException- Overrides:
- openin class- org.eclipse.jgit.lib.Repository
- Throws:
- org.eclipse.jgit.errors.MissingObjectException
- IOException
 
 - 
updateRefpublic org.eclipse.jgit.lib.RefUpdate updateRef(String ref) throws IOException - Overrides:
- updateRefin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
updateRefpublic org.eclipse.jgit.lib.RefUpdate updateRef(String ref, boolean detach) throws IOException - Overrides:
- updateRefin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
renameRefpublic org.eclipse.jgit.lib.RefRename renameRef(String fromRef, String toRef) throws IOException - Overrides:
- renameRefin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
resolvepublic org.eclipse.jgit.lib.ObjectId resolve(String revstr) throws org.eclipse.jgit.errors.AmbiguousObjectException, org.eclipse.jgit.errors.IncorrectObjectTypeException, org.eclipse.jgit.errors.RevisionSyntaxException, IOException - Overrides:
- resolvein class- org.eclipse.jgit.lib.Repository
- Throws:
- org.eclipse.jgit.errors.AmbiguousObjectException
- org.eclipse.jgit.errors.IncorrectObjectTypeException
- org.eclipse.jgit.errors.RevisionSyntaxException
- IOException
 
 - 
simplifypublic String simplify(String revstr) throws org.eclipse.jgit.errors.AmbiguousObjectException, IOException - Overrides:
- simplifyin class- org.eclipse.jgit.lib.Repository
- Throws:
- org.eclipse.jgit.errors.AmbiguousObjectException
- IOException
 
 - 
peel@Deprecated public org.eclipse.jgit.lib.Ref peel(org.eclipse.jgit.lib.Ref ref) Deprecated.- Overrides:
- peelin class- org.eclipse.jgit.lib.Repository
 
 - 
parseCommitpublic org.eclipse.jgit.revwalk.RevCommit parseCommit(org.eclipse.jgit.lib.AnyObjectId id) throws org.eclipse.jgit.errors.IncorrectObjectTypeException, IOException, org.eclipse.jgit.errors.MissingObjectException- Overrides:
- parseCommitin class- org.eclipse.jgit.lib.Repository
- Throws:
- org.eclipse.jgit.errors.IncorrectObjectTypeException
- IOException
- org.eclipse.jgit.errors.MissingObjectException
 
 - 
readDirCachepublic org.eclipse.jgit.dircache.DirCache readDirCache() throws org.eclipse.jgit.errors.NoWorkTreeException, org.eclipse.jgit.errors.CorruptObjectException, IOException- Overrides:
- readDirCachein class- org.eclipse.jgit.lib.Repository
- Throws:
- org.eclipse.jgit.errors.NoWorkTreeException
- org.eclipse.jgit.errors.CorruptObjectException
- IOException
 
 - 
shortenRemoteBranchNamepublic String shortenRemoteBranchName(String refName) - Overrides:
- shortenRemoteBranchNamein class- org.eclipse.jgit.lib.Repository
 
 - 
setGitwebDescriptionpublic void setGitwebDescription(String description) throws IOException - Overrides:
- setGitwebDescriptionin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
readMergeCommitMsgpublic String readMergeCommitMsg() throws IOException, org.eclipse.jgit.errors.NoWorkTreeException - Overrides:
- readMergeCommitMsgin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
- org.eclipse.jgit.errors.NoWorkTreeException
 
 - 
writeMergeCommitMsgpublic void writeMergeCommitMsg(String msg) throws IOException - Overrides:
- writeMergeCommitMsgin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
readCommitEditMsgpublic String readCommitEditMsg() throws IOException, org.eclipse.jgit.errors.NoWorkTreeException - Overrides:
- readCommitEditMsgin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
- org.eclipse.jgit.errors.NoWorkTreeException
 
 - 
writeCommitEditMsgpublic void writeCommitEditMsg(String msg) throws IOException - Overrides:
- writeCommitEditMsgin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
readMergeHeadspublic List<org.eclipse.jgit.lib.ObjectId> readMergeHeads() throws IOException, org.eclipse.jgit.errors.NoWorkTreeException - Overrides:
- readMergeHeadsin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
- org.eclipse.jgit.errors.NoWorkTreeException
 
 - 
writeMergeHeadspublic void writeMergeHeads(List<? extends org.eclipse.jgit.lib.ObjectId> heads) throws IOException - Overrides:
- writeMergeHeadsin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
readCherryPickHeadpublic org.eclipse.jgit.lib.ObjectId readCherryPickHead() throws IOException, org.eclipse.jgit.errors.NoWorkTreeException- Overrides:
- readCherryPickHeadin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
- org.eclipse.jgit.errors.NoWorkTreeException
 
 - 
readRevertHeadpublic org.eclipse.jgit.lib.ObjectId readRevertHead() throws IOException, org.eclipse.jgit.errors.NoWorkTreeException- Overrides:
- readRevertHeadin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
- org.eclipse.jgit.errors.NoWorkTreeException
 
 - 
writeCherryPickHeadpublic void writeCherryPickHead(org.eclipse.jgit.lib.ObjectId head) throws IOException- Overrides:
- writeCherryPickHeadin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
writeRevertHeadpublic void writeRevertHead(org.eclipse.jgit.lib.ObjectId head) throws IOException- Overrides:
- writeRevertHeadin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
writeOrigHeadpublic void writeOrigHead(org.eclipse.jgit.lib.ObjectId head) throws IOException- Overrides:
- writeOrigHeadin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
readOrigHeadpublic org.eclipse.jgit.lib.ObjectId readOrigHead() throws IOException, org.eclipse.jgit.errors.NoWorkTreeException- Overrides:
- readOrigHeadin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
- org.eclipse.jgit.errors.NoWorkTreeException
 
 - 
readSquashCommitMsgpublic String readSquashCommitMsg() throws IOException - Overrides:
- readSquashCommitMsgin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
writeSquashCommitMsgpublic void writeSquashCommitMsg(String msg) throws IOException - Overrides:
- writeSquashCommitMsgin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
readRebaseTodopublic List<org.eclipse.jgit.lib.RebaseTodoLine> readRebaseTodo(String path, boolean includeComments) throws IOException - Overrides:
- readRebaseTodoin class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 - 
writeRebaseTodoFilepublic void writeRebaseTodoFile(String path, List<org.eclipse.jgit.lib.RebaseTodoLine> steps, boolean append) throws IOException - Overrides:
- writeRebaseTodoFilein class- org.eclipse.jgit.lib.Repository
- Throws:
- IOException
 
 
- 
 
-