public class InitCommand extends java.lang.Object implements java.util.concurrent.Callable<Git>
Constructor and Description |
---|
InitCommand() |
Modifier and Type | Method and Description |
---|---|
Git |
call()
Executes the
Init command. |
InitCommand |
setBare(boolean bare) |
InitCommand |
setDirectory(java.io.File directory)
The optional directory associated with the init operation.
|
public Git call() throws GitAPIException
Init
command.call
in interface java.util.concurrent.Callable<Git>
Git
object with associated repositoryGitAPIException
public InitCommand setDirectory(java.io.File directory)
directory
- the directory to init topublic InitCommand setBare(boolean bare)
bare
- whether the repository is bare or notCopyright © 2012. All Rights Reserved.