public abstract class DfsRepository extends Repository
| Modifier | Constructor and Description |
|---|---|
protected |
DfsRepository(DfsRepositoryBuilder builder)
Initialize a DFS repository.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
close, create, doClose, fireEvent, getAdditionalHaves, getAllRefs, getAllRefsByPeeledObjectId, getBranch, getDirectory, getFS, getFullBranch, getGlobalListenerList, getIndexFile, getListenerList, getRef, getRemoteName, getRemoteNames, getRepositoryState, getTags, getWorkTree, hasObject, incrementOpen, isBare, isValidRefName, lockDirCache, newObjectInserter, newObjectReader, open, open, peel, readCherryPickHead, readDirCache, readMergeCommitMsg, readMergeHeads, readOrigHead, readRebaseTodo, readRevertHead, readSquashCommitMsg, renameRef, resolve, shortenRefName, shortenRemoteBranchName, simplify, stripWorkDir, toString, updateRef, updateRef, writeCherryPickHead, writeMergeCommitMsg, writeMergeHeads, writeOrigHead, writeRebaseTodoFile, writeRevertHead, writeSquashCommitMsgprotected DfsRepository(DfsRepositoryBuilder builder)
builder - description of the repository.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
Repositorycreate 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 Repositorypublic void scanForRepoChanges()
throws IOException
RepositoryscanForRepoChanges in class RepositoryIOExceptionpublic void notifyIndexChanged()
RepositorynotifyIndexChanged in class Repositorypublic 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.Copyright © 2014. All rights reserved.