public class RepositoryWrapper
extends org.eclipse.jgit.lib.Repository
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.jgit.lib.Repository |
repository |
Constructor and Description |
---|
RepositoryWrapper(org.eclipse.jgit.lib.Repository repository) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
create() |
void |
create(boolean bare) |
void |
fireEvent(org.eclipse.jgit.events.RepositoryEvent<?> repositoryEvent) |
java.util.Set<org.eclipse.jgit.lib.ObjectId> |
getAdditionalHaves() |
java.util.Map<java.lang.String,org.eclipse.jgit.lib.Ref> |
getAllRefs() |
java.util.Map<org.eclipse.jgit.lib.AnyObjectId,java.util.Set<org.eclipse.jgit.lib.Ref>> |
getAllRefsByPeeledObjectId() |
java.lang.String |
getBranch() |
org.eclipse.jgit.lib.StoredConfig |
getConfig() |
java.io.File |
getDirectory() |
org.eclipse.jgit.util.FS |
getFS() |
java.lang.String |
getFullBranch() |
java.io.File |
getIndexFile() |
org.eclipse.jgit.events.ListenerList |
getListenerList() |
org.eclipse.jgit.lib.ObjectDatabase |
getObjectDatabase() |
org.eclipse.jgit.lib.Ref |
getRef(java.lang.String name) |
org.eclipse.jgit.lib.RefDatabase |
getRefDatabase() |
org.eclipse.jgit.lib.ReflogReader |
getReflogReader(java.lang.String refName) |
java.lang.String |
getRemoteName(java.lang.String refName) |
java.util.Set<java.lang.String> |
getRemoteNames() |
org.eclipse.jgit.lib.RepositoryState |
getRepositoryState() |
java.util.Map<java.lang.String,org.eclipse.jgit.lib.Ref> |
getTags() |
java.io.File |
getWorkTree() |
boolean |
hasObject(org.eclipse.jgit.lib.AnyObjectId anyObjectId) |
void |
incrementOpen() |
boolean |
isBare() |
org.eclipse.jgit.dircache.DirCache |
lockDirCache() |
org.eclipse.jgit.lib.ObjectInserter |
newObjectInserter() |
org.eclipse.jgit.lib.ObjectReader |
newObjectReader() |
void |
notifyIndexChanged() |
org.eclipse.jgit.lib.ObjectLoader |
open(org.eclipse.jgit.lib.AnyObjectId anyObjectId) |
org.eclipse.jgit.lib.ObjectLoader |
open(org.eclipse.jgit.lib.AnyObjectId anyObjectId,
int typeHint) |
org.eclipse.jgit.lib.Ref |
peel(org.eclipse.jgit.lib.Ref ref) |
org.eclipse.jgit.lib.ObjectId |
readCherryPickHead() |
java.lang.String |
readCommitEditMsg() |
org.eclipse.jgit.dircache.DirCache |
readDirCache() |
java.lang.String |
readMergeCommitMsg() |
java.util.List<org.eclipse.jgit.lib.ObjectId> |
readMergeHeads() |
org.eclipse.jgit.lib.ObjectId |
readOrigHead() |
java.util.List<org.eclipse.jgit.lib.RebaseTodoLine> |
readRebaseTodo(java.lang.String path,
boolean includeComments) |
org.eclipse.jgit.lib.ObjectId |
readRevertHead() |
java.lang.String |
readSquashCommitMsg() |
org.eclipse.jgit.lib.RefRename |
renameRef(java.lang.String fromRef,
java.lang.String toRef) |
org.eclipse.jgit.lib.ObjectId |
resolve(java.lang.String revName) |
void |
scanForRepoChanges() |
java.lang.String |
shortenRemoteBranchName(java.lang.String refName) |
java.lang.String |
simplify(java.lang.String revName) |
java.lang.String |
toString() |
org.eclipse.jgit.lib.RefUpdate |
updateRef(java.lang.String ref) |
org.eclipse.jgit.lib.RefUpdate |
updateRef(java.lang.String ref,
boolean detach) |
void |
writeCherryPickHead(org.eclipse.jgit.lib.ObjectId headObjectId) |
void |
writeCommitEditMsg(java.lang.String message) |
void |
writeMergeCommitMsg(java.lang.String message) |
void |
writeMergeHeads(java.util.List<? extends org.eclipse.jgit.lib.ObjectId> headsObjectIds) |
void |
writeOrigHead(org.eclipse.jgit.lib.ObjectId headObjectId) |
void |
writeRebaseTodoFile(java.lang.String path,
java.util.List<org.eclipse.jgit.lib.RebaseTodoLine> steps,
boolean append) |
void |
writeRevertHead(org.eclipse.jgit.lib.ObjectId headObjectId) |
void |
writeSquashCommitMsg(java.lang.String message) |
public RepositoryWrapper(org.eclipse.jgit.lib.Repository repository)
public void close()
close
in interface java.lang.AutoCloseable
close
in class org.eclipse.jgit.lib.Repository
public void create() throws java.io.IOException
create
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public void create(boolean bare) throws java.io.IOException
create
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public void fireEvent(org.eclipse.jgit.events.RepositoryEvent<?> repositoryEvent)
fireEvent
in class org.eclipse.jgit.lib.Repository
public java.util.Set<org.eclipse.jgit.lib.ObjectId> getAdditionalHaves()
getAdditionalHaves
in class org.eclipse.jgit.lib.Repository
public java.util.Map<java.lang.String,org.eclipse.jgit.lib.Ref> getAllRefs()
getAllRefs
in class org.eclipse.jgit.lib.Repository
public java.util.Map<org.eclipse.jgit.lib.AnyObjectId,java.util.Set<org.eclipse.jgit.lib.Ref>> getAllRefsByPeeledObjectId()
getAllRefsByPeeledObjectId
in class org.eclipse.jgit.lib.Repository
public java.lang.String getBranch() throws java.io.IOException
getBranch
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public org.eclipse.jgit.lib.StoredConfig getConfig()
getConfig
in class org.eclipse.jgit.lib.Repository
public java.io.File getDirectory()
getDirectory
in class org.eclipse.jgit.lib.Repository
public org.eclipse.jgit.util.FS getFS()
getFS
in class org.eclipse.jgit.lib.Repository
public java.lang.String getFullBranch() throws java.io.IOException
getFullBranch
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public java.io.File getIndexFile() throws org.eclipse.jgit.errors.NoWorkTreeException
getIndexFile
in class org.eclipse.jgit.lib.Repository
org.eclipse.jgit.errors.NoWorkTreeException
public org.eclipse.jgit.events.ListenerList getListenerList()
getListenerList
in class org.eclipse.jgit.lib.Repository
public org.eclipse.jgit.lib.ObjectDatabase getObjectDatabase()
getObjectDatabase
in class org.eclipse.jgit.lib.Repository
public org.eclipse.jgit.lib.Ref getRef(java.lang.String name) throws java.io.IOException
getRef
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public org.eclipse.jgit.lib.RefDatabase getRefDatabase()
getRefDatabase
in class org.eclipse.jgit.lib.Repository
public org.eclipse.jgit.lib.ReflogReader getReflogReader(java.lang.String refName) throws java.io.IOException
getReflogReader
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public java.lang.String getRemoteName(java.lang.String refName)
getRemoteName
in class org.eclipse.jgit.lib.Repository
public java.util.Set<java.lang.String> getRemoteNames()
getRemoteNames
in class org.eclipse.jgit.lib.Repository
public org.eclipse.jgit.lib.RepositoryState getRepositoryState()
getRepositoryState
in class org.eclipse.jgit.lib.Repository
public java.util.Map<java.lang.String,org.eclipse.jgit.lib.Ref> getTags()
getTags
in class org.eclipse.jgit.lib.Repository
public java.io.File getWorkTree() throws org.eclipse.jgit.errors.NoWorkTreeException
getWorkTree
in class org.eclipse.jgit.lib.Repository
org.eclipse.jgit.errors.NoWorkTreeException
public boolean hasObject(org.eclipse.jgit.lib.AnyObjectId anyObjectId)
hasObject
in class org.eclipse.jgit.lib.Repository
public void incrementOpen()
incrementOpen
in class org.eclipse.jgit.lib.Repository
public boolean isBare()
isBare
in class org.eclipse.jgit.lib.Repository
public org.eclipse.jgit.dircache.DirCache lockDirCache() throws org.eclipse.jgit.errors.CorruptObjectException, java.io.IOException, org.eclipse.jgit.errors.NoWorkTreeException
lockDirCache
in class org.eclipse.jgit.lib.Repository
org.eclipse.jgit.errors.CorruptObjectException
java.io.IOException
org.eclipse.jgit.errors.NoWorkTreeException
public org.eclipse.jgit.lib.ObjectInserter newObjectInserter()
newObjectInserter
in class org.eclipse.jgit.lib.Repository
public org.eclipse.jgit.lib.ObjectReader newObjectReader()
newObjectReader
in class org.eclipse.jgit.lib.Repository
public void notifyIndexChanged()
notifyIndexChanged
in class org.eclipse.jgit.lib.Repository
public org.eclipse.jgit.lib.ObjectLoader open(org.eclipse.jgit.lib.AnyObjectId anyObjectId) throws java.io.IOException, org.eclipse.jgit.errors.MissingObjectException
open
in class org.eclipse.jgit.lib.Repository
java.io.IOException
org.eclipse.jgit.errors.MissingObjectException
public org.eclipse.jgit.lib.ObjectLoader open(org.eclipse.jgit.lib.AnyObjectId anyObjectId, int typeHint) throws org.eclipse.jgit.errors.IncorrectObjectTypeException, java.io.IOException, org.eclipse.jgit.errors.MissingObjectException
open
in class org.eclipse.jgit.lib.Repository
org.eclipse.jgit.errors.IncorrectObjectTypeException
java.io.IOException
org.eclipse.jgit.errors.MissingObjectException
public org.eclipse.jgit.lib.Ref peel(org.eclipse.jgit.lib.Ref ref)
peel
in class org.eclipse.jgit.lib.Repository
public org.eclipse.jgit.lib.ObjectId readCherryPickHead() throws java.io.IOException, org.eclipse.jgit.errors.NoWorkTreeException
readCherryPickHead
in class org.eclipse.jgit.lib.Repository
java.io.IOException
org.eclipse.jgit.errors.NoWorkTreeException
public java.lang.String readCommitEditMsg() throws java.io.IOException, org.eclipse.jgit.errors.NoWorkTreeException
readCommitEditMsg
in class org.eclipse.jgit.lib.Repository
java.io.IOException
org.eclipse.jgit.errors.NoWorkTreeException
public org.eclipse.jgit.dircache.DirCache readDirCache() throws org.eclipse.jgit.errors.CorruptObjectException, java.io.IOException, org.eclipse.jgit.errors.NoWorkTreeException
readDirCache
in class org.eclipse.jgit.lib.Repository
org.eclipse.jgit.errors.CorruptObjectException
java.io.IOException
org.eclipse.jgit.errors.NoWorkTreeException
public java.lang.String readMergeCommitMsg() throws java.io.IOException, org.eclipse.jgit.errors.NoWorkTreeException
readMergeCommitMsg
in class org.eclipse.jgit.lib.Repository
java.io.IOException
org.eclipse.jgit.errors.NoWorkTreeException
public java.util.List<org.eclipse.jgit.lib.ObjectId> readMergeHeads() throws java.io.IOException, org.eclipse.jgit.errors.NoWorkTreeException
readMergeHeads
in class org.eclipse.jgit.lib.Repository
java.io.IOException
org.eclipse.jgit.errors.NoWorkTreeException
public org.eclipse.jgit.lib.ObjectId readOrigHead() throws java.io.IOException, org.eclipse.jgit.errors.NoWorkTreeException
readOrigHead
in class org.eclipse.jgit.lib.Repository
java.io.IOException
org.eclipse.jgit.errors.NoWorkTreeException
public java.util.List<org.eclipse.jgit.lib.RebaseTodoLine> readRebaseTodo(java.lang.String path, boolean includeComments) throws java.io.IOException
readRebaseTodo
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public org.eclipse.jgit.lib.ObjectId readRevertHead() throws java.io.IOException, org.eclipse.jgit.errors.NoWorkTreeException
readRevertHead
in class org.eclipse.jgit.lib.Repository
java.io.IOException
org.eclipse.jgit.errors.NoWorkTreeException
public java.lang.String readSquashCommitMsg() throws java.io.IOException
readSquashCommitMsg
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public org.eclipse.jgit.lib.RefRename renameRef(java.lang.String fromRef, java.lang.String toRef) throws java.io.IOException
renameRef
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public org.eclipse.jgit.lib.ObjectId resolve(java.lang.String revName) throws org.eclipse.jgit.errors.AmbiguousObjectException, org.eclipse.jgit.errors.IncorrectObjectTypeException, java.io.IOException, org.eclipse.jgit.errors.RevisionSyntaxException
resolve
in class org.eclipse.jgit.lib.Repository
org.eclipse.jgit.errors.AmbiguousObjectException
org.eclipse.jgit.errors.IncorrectObjectTypeException
java.io.IOException
org.eclipse.jgit.errors.RevisionSyntaxException
public void scanForRepoChanges() throws java.io.IOException
scanForRepoChanges
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public java.lang.String shortenRemoteBranchName(java.lang.String refName)
shortenRemoteBranchName
in class org.eclipse.jgit.lib.Repository
public java.lang.String simplify(java.lang.String revName) throws org.eclipse.jgit.errors.AmbiguousObjectException, java.io.IOException
simplify
in class org.eclipse.jgit.lib.Repository
org.eclipse.jgit.errors.AmbiguousObjectException
java.io.IOException
public java.lang.String toString()
toString
in class org.eclipse.jgit.lib.Repository
public org.eclipse.jgit.lib.RefUpdate updateRef(java.lang.String ref) throws java.io.IOException
updateRef
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public org.eclipse.jgit.lib.RefUpdate updateRef(java.lang.String ref, boolean detach) throws java.io.IOException
updateRef
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public void writeCherryPickHead(org.eclipse.jgit.lib.ObjectId headObjectId) throws java.io.IOException
writeCherryPickHead
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public void writeCommitEditMsg(java.lang.String message) throws java.io.IOException
writeCommitEditMsg
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public void writeMergeCommitMsg(java.lang.String message) throws java.io.IOException
writeMergeCommitMsg
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public void writeMergeHeads(java.util.List<? extends org.eclipse.jgit.lib.ObjectId> headsObjectIds) throws java.io.IOException
writeMergeHeads
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public void writeOrigHead(org.eclipse.jgit.lib.ObjectId headObjectId) throws java.io.IOException
writeOrigHead
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public void writeRebaseTodoFile(java.lang.String path, java.util.List<org.eclipse.jgit.lib.RebaseTodoLine> steps, boolean append) throws java.io.IOException
writeRebaseTodoFile
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public void writeRevertHead(org.eclipse.jgit.lib.ObjectId headObjectId) throws java.io.IOException
writeRevertHead
in class org.eclipse.jgit.lib.Repository
java.io.IOException
public void writeSquashCommitMsg(java.lang.String message) throws java.io.IOException
writeSquashCommitMsg
in class org.eclipse.jgit.lib.Repository
java.io.IOException