|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.api.CloneCommand
public class CloneCommand
Clone a repository into a new working directory
| Constructor Summary | |
|---|---|
CloneCommand()
|
|
| Method Summary | |
|---|---|
Git |
call()
Executes the Clone command. |
CloneCommand |
setBare(boolean bare)
|
CloneCommand |
setBranch(String branch)
|
CloneCommand |
setBranchesToClone(Collection<String> branchesToClone)
|
CloneCommand |
setCloneAllBranches(boolean cloneAllBranches)
|
CloneCommand |
setCredentialsProvider(CredentialsProvider credentialsProvider)
|
CloneCommand |
setDirectory(File directory)
The optional directory associated with the clone operation. |
CloneCommand |
setNoCheckout(boolean noCheckout)
|
CloneCommand |
setProgressMonitor(ProgressMonitor monitor)
The progress monitor associated with the clone operation. |
CloneCommand |
setRemote(String remote)
The remote name used to keep track of the upstream repository for the clone operation. |
CloneCommand |
setTimeout(int timeout)
|
CloneCommand |
setURI(String uri)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CloneCommand()
| Method Detail |
|---|
public Git call()
throws JGitInternalException
Clone command.
call in interface Callable<Git>Git object with associated repository
JGitInternalException - if the repository can't be createdpublic CloneCommand setURI(String uri)
uri - the uri to clone from
public CloneCommand setDirectory(File directory)
directory - the directory to clone to
URIish.getHumanishName()public CloneCommand setBare(boolean bare)
bare - whether the cloned repository is bare or not
public CloneCommand setRemote(String remote)
Constants.DEFAULT_REMOTE_NAME will be used.
remote - name that keeps track of the upstream repository
Constants.DEFAULT_REMOTE_NAMEpublic CloneCommand setBranch(String branch)
branch - the initial branch to check out when cloning the repository
public CloneCommand setProgressMonitor(ProgressMonitor monitor)
NullProgressMonitor
monitor -
thisNullProgressMonitorpublic CloneCommand setCredentialsProvider(CredentialsProvider credentialsProvider)
credentialsProvider - the CredentialsProvider to use
thispublic CloneCommand setTimeout(int timeout)
timeout - the timeout used for the fetch step
thispublic CloneCommand setCloneAllBranches(boolean cloneAllBranches)
cloneAllBranches - true when all branches have to be fetched (indicates wildcard
in created fetch refspec), false otherwise.
thispublic CloneCommand setBranchesToClone(Collection<String> branchesToClone)
branchesToClone - collection of branches to clone. Ignored when allSelected is
true.
thispublic CloneCommand setNoCheckout(boolean noCheckout)
noCheckout - if set to true no branch will be checked out
after the clone. This enhances performance of the clone
command when there is no need for a checked out branch.
this
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||