|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.api.InitCommand
public class InitCommand
Create an empty git repository or reinitalize an existing one
Constructor Summary | |
---|---|
InitCommand()
|
Method Summary | |
---|---|
Git |
call()
Executes the Init command. |
InitCommand |
setBare(boolean bare)
|
InitCommand |
setDirectory(java.io.File directory)
The optional directory associated with the init operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InitCommand()
Method Detail |
---|
public Git call() throws GitAPIException
Init
command.
call
in interface java.util.concurrent.Callable<Git>
Git
object with associated repository
GitAPIException
public InitCommand setDirectory(java.io.File directory)
directory
- the directory to init to
public InitCommand setBare(boolean bare)
bare
- whether the repository is bare or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |