Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
Modifier and Type | Method and Description |
---|---|
static CloneCommand |
Git.cloneRepository()
Return a command object to execute a
clone command |
CloneCommand |
CloneCommand.setBare(boolean bare)
Set whether the cloned repository shall be bare
|
CloneCommand |
CloneCommand.setBranch(String branch)
Set the initial branch
|
CloneCommand |
CloneCommand.setBranchesToClone(Collection<String> branchesToClone)
Set the branches or tags to clone.
|
CloneCommand |
CloneCommand.setCallback(CloneCommand.Callback callback)
Register a progress callback.
|
CloneCommand |
CloneCommand.setCloneAllBranches(boolean cloneAllBranches)
Set whether all branches have to be fetched.
|
CloneCommand |
CloneCommand.setCloneSubmodules(boolean cloneSubmodules)
Set whether to clone submodules
|
CloneCommand |
CloneCommand.setDirectory(File directory)
The optional directory associated with the clone operation.
|
CloneCommand |
CloneCommand.setFs(FS fs)
Set the file system abstraction to be used for repositories created by
this command.
|
CloneCommand |
CloneCommand.setGitDir(File gitDir)
Set the repository meta directory (.git)
|
CloneCommand |
CloneCommand.setMirror(boolean mirror)
Set up a mirror of the source repository.
|
CloneCommand |
CloneCommand.setNoCheckout(boolean noCheckout)
Set whether to skip checking out a branch
|
CloneCommand |
CloneCommand.setNoTags()
Set the --no-tags option.
|
CloneCommand |
CloneCommand.setProgressMonitor(ProgressMonitor monitor)
The progress monitor associated with the clone operation.
|
CloneCommand |
CloneCommand.setRemote(String remote)
The remote name used to keep track of the upstream repository for the
clone operation.
|
CloneCommand |
CloneCommand.setTagOption(TagOpt tagOption)
Set the tag option used for the remote configuration explicitly.
|
CloneCommand |
CloneCommand.setURI(String uri)
Set the URI to clone from
|
Copyright © 2020 Eclipse JGit Project. All rights reserved.