Core classes for git client API implementation.
-
When shallow cloning, allow for a depth to be set in cases where you need more than the immediate last commit.
CloneCommand.refspecs(List<org.eclipse.jgit.transport.RefSpec> refspecs)
List of refspecs to be retrieved by the fetch.
Name of the remote, such as 'origin' (which is the default).
CloneCommand.shallow(boolean shallow)
Only clone the most recent history, not preceding history.
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.
URL of the repository to be cloned.
shallow(boolean)