public interface CloneCommand extends GitCommand
| Modifier and Type | Method and Description |
|---|---|
CloneCommand |
depth(Integer depth)
When shallow cloning, allow for a depth to be set in cases where you need more than the immediate last commit.
|
CloneCommand |
noCheckout()
Deprecated.
|
CloneCommand |
reference(String reference)
reference.
|
CloneCommand |
refspecs(List<RefSpec> refspecs)
List of refspecs to be retrieved by the fetch.
|
CloneCommand |
repositoryName(String name)
Name of the remote, such as 'origin' (which is the default).
|
CloneCommand |
shallow()
Deprecated.
favour
shallow(boolean) |
CloneCommand |
shallow(boolean shallow)
Only clone the most recent history, not preceding history.
|
CloneCommand |
shared()
Deprecated.
favour
shared(boolean) |
CloneCommand |
shared(boolean shared)
When the repository to clone is on the local machine, instead of using hard links, automatically setup
.git/objects/info/alternates to share the objects with the source repository
|
CloneCommand |
tags(boolean tags)
Boolean which allows caller to request that tags and their references are
not fetched.
|
CloneCommand |
timeout(Integer timeout)
timeout.
|
CloneCommand |
url(String url)
URL of the repository to be cloned.
|
executeCloneCommand url(String url)
url - a String object.CloneCommand object.CloneCommand repositoryName(String name)
name - a String object.CloneCommand object.@Deprecated CloneCommand shallow()
shallow(boolean)CloneCommand object.CloneCommand shallow(boolean shallow)
shallow - boolean controlling whether the clone is shallowCloneCommand object.@Deprecated CloneCommand shared()
shared(boolean)CloneCommand object.CloneCommand shared(boolean shared)
shared - boolean controlling whether the clone is sharedCloneCommand object.CloneCommand reference(String reference)
reference - a String object.CloneCommand object.CloneCommand timeout(Integer timeout)
timeout - a Integer object.CloneCommand object.@Deprecated CloneCommand noCheckout()
CloneCommand object.CloneCommand tags(boolean tags)
tags - boolean controlling whether tags are fetchedCloneCommand object.CloneCommand refspecs(List<RefSpec> refspecs)
refspecs - refspecs defining the references to be fetchedCloneCommand object.CloneCommand depth(Integer depth)
depth - number of revisions to be included in shallow cloneCloneCommand object.Copyright © 2013–2020. All rights reserved.