|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.lib.Repository
org.eclipse.jgit.storage.dfs.DfsRepository
public abstract class DfsRepository
A Git repository on a DFS.
| Constructor Summary | |
|---|---|
protected |
DfsRepository(DfsRepositoryBuilder builder)
Initialize a DFS repository. |
| Method Summary | |
|---|---|
void |
create(boolean bare)
Create a new Git repository initializing the necessary files and directories. |
boolean |
exists()
Check if the repository already exists. |
StoredConfig |
getConfig()
|
DfsRepositoryDescription |
getDescription()
|
abstract DfsObjDatabase |
getObjectDatabase()
|
abstract DfsRefDatabase |
getRefDatabase()
|
ReflogReader |
getReflogReader(String refName)
|
void |
notifyIndexChanged()
Notify that the index changed |
void |
scanForRepoChanges()
Force a scan for changed refs. |
| Methods inherited from class org.eclipse.jgit.lib.Repository |
|---|
close, create, doClose, fireEvent, getAdditionalHaves, getAllRefs, getAllRefsByPeeledObjectId, getBranch, getDirectory, getFS, getFullBranch, getGlobalListenerList, getIndexFile, getListenerList, getRef, getRepositoryState, getTags, getWorkTree, hasObject, incrementOpen, isBare, isValidRefName, lockDirCache, newObjectInserter, newObjectReader, open, open, peel, readCherryPickHead, readDirCache, readMergeCommitMsg, readMergeHeads, renameRef, resolve, shortenRefName, stripWorkDir, toString, updateRef, updateRef, writeCherryPickHead, writeMergeCommitMsg, writeMergeHeads |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected DfsRepository(DfsRepositoryBuilder builder)
builder - description of the repository.| Method Detail |
|---|
public abstract DfsObjDatabase getObjectDatabase()
getObjectDatabase in class Repositorypublic abstract DfsRefDatabase getRefDatabase()
getRefDatabase in class Repositorypublic DfsRepositoryDescription getDescription()
public boolean exists()
throws IOException
IOException - the repository cannot be checked.
public void create(boolean bare)
throws IOException
Repository
create in class Repositorybare - if true, a bare repository (a repository without a working
directory) is created.
IOException - in case of IO problempublic StoredConfig getConfig()
getConfig in class Repository
public void scanForRepoChanges()
throws IOException
Repository
scanForRepoChanges in class RepositoryIOExceptionpublic void notifyIndexChanged()
Repository
notifyIndexChanged in class Repository
public ReflogReader getReflogReader(String refName)
throws IOException
getReflogReader in class RepositoryReflogReader for the supplied refname, or null if the
named ref does not exist.
IOException - the ref could not be accessed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||