| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private File | |
| private FS | |
| private File | |
| private String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Git | Returns: aGit instance that owns the Repository that it
wraps.Implements java. Computes a result, or throws an exception if unable to do so. |
| public InitCommand | Returns: this instancewhether the repository is bare or not bare)Set whether the repository is bare or not |
| public InitCommand | Returns: this instancethe directory to init to directory)The optional directory associated with the init operation. |
| public InitCommand | |
| public InitCommand | |
| public InitCommand | Returns: thisinitial branch name of the new repository branch)Set the initial branch of the new repository. |
| public InitCommand | Returns: thisif true, use relative paths for GIT_DIR and GIT_WORK_TREE relativePaths)* Set whether the repository shall use relative paths for GIT_DIR and GIT_WORK_TREE |
| private static void |
| bare | back to summary |
|---|---|
| private boolean bare | |
| directory | back to summary |
|---|---|
| private File directory | |
| fs | back to summary |
|---|---|
| private FS fs | |
| gitDir | back to summary |
|---|---|
| private File gitDir | |
| initialBranch | back to summary |
|---|---|
| private String initialBranch | |
| relativePaths | back to summary |
|---|---|
| private boolean relativePaths | |
| InitCommand | back to summary |
|---|---|
| public InitCommand() | |
| call | back to summary |
|---|---|
| public Git call() throws GitAPIException Implements java. Doc from java. Computes a result, or throws an exception if unable to do so.
Executes the | |
| setBare | back to summary |
|---|---|
| public InitCommand setBare(boolean bare) Set whether the repository is bare or not
| |
| setDirectory | back to summary |
|---|---|
| public InitCommand setDirectory(File directory) throws IllegalStateException The optional directory associated with the init operation. If no directory is set, we'll use the current directory
| |
| setFs | back to summary |
|---|---|
| public InitCommand setFs(FS fs) Set the file system abstraction to be used for repositories created by this command.
| |
| setGitDir | back to summary |
|---|---|
| public InitCommand setGitDir(File gitDir) throws IllegalStateException Set the repository meta directory (.git)
| |
| setInitialBranch | back to summary |
|---|---|
| public InitCommand setInitialBranch(String branch) throws InvalidRefNameException Set the initial branch of the new repository. If not specified
(
| |
| setRelativeDirs | back to summary |
|---|---|
| public InitCommand setRelativeDirs(boolean relativePaths) * Set whether the repository shall use relative paths for GIT_DIR and GIT_WORK_TREE
| |
| validateDirs | back to summary |
|---|---|
| private static void validateDirs(File directory, File gitDir, boolean bare) throws IllegalStateException | |