Package org.eclipse.jgit.lib
Class RepositoryBuilder
- java.lang.Object
-
- org.eclipse.jgit.lib.BaseRepositoryBuilder<RepositoryBuilder,Repository>
-
- org.eclipse.jgit.lib.RepositoryBuilder
-
public class RepositoryBuilder extends BaseRepositoryBuilder<RepositoryBuilder,Repository>
Base class to support constructing aRepository
.Applications must set one of
BaseRepositoryBuilder.setGitDir(File)
orBaseRepositoryBuilder.setWorkTree(File)
, or useBaseRepositoryBuilder.readEnvironment()
orBaseRepositoryBuilder.findGitDir()
in order to configure the minimum property set necessary to open a repository.Single repository applications trying to be compatible with other Git implementations are encouraged to use a model such as:
new RepositoryBuilder() // .setGitDir(gitDirArgument) // --git-dir if supplied, no-op if null .readEnviroment() // scan environment GIT_* variables .findGitDir() // scan up the file system tree .build()
- See Also:
FileRepositoryBuilder
-
-
Constructor Summary
Constructors Constructor Description RepositoryBuilder()
-
Method Summary
-
Methods inherited from class org.eclipse.jgit.lib.BaseRepositoryBuilder
addAlternateObjectDirectories, addAlternateObjectDirectories, addAlternateObjectDirectory, addCeilingDirectories, addCeilingDirectories, addCeilingDirectory, build, findGitDir, findGitDir, getAlternateObjectDirectories, getConfig, getFS, getGitDir, getIndexFile, getInitialBranch, getObjectDirectory, getWorkTree, isBare, isMustExist, loadConfig, readEnvironment, readEnvironment, requireGitDirOrWorkTree, safeFS, self, setBare, setFS, setGitDir, setIndexFile, setInitialBranch, setMustExist, setObjectDirectory, setup, setupGitDir, setupInternals, setupWorkTree, setWorkTree
-
-