Package org.jenkinsci.plugins.gitclient
Interface FetchCommand
- All Superinterfaces:
GitCommand
FetchCommand interface.
-
Method Summary
Methods inherited from interface org.jenkinsci.plugins.gitclient.GitCommand
execute
-
Method Details
-
from
FetchCommand from(org.eclipse.jgit.transport.URIish remote, List<org.eclipse.jgit.transport.RefSpec> refspecs) from.- Parameters:
remote
- aURIish
object.refspecs
- aList
object.- Returns:
- a
FetchCommand
object.
-
prune
Deprecated.favourprune(boolean)
prune.- Returns:
- a
FetchCommand
object.
-
prune
prune.- Parameters:
prune
-true
if the fetch should prune.- Returns:
- a
FetchCommand
object. - Since:
- 2.5.0
-
shallow
shallow.- Parameters:
shallow
- a boolean.- Returns:
- a
FetchCommand
object.
-
timeout
timeout.- Parameters:
timeout
- aInteger
object.- Returns:
- a
FetchCommand
object.
-
tags
-
depth
When shallow cloning, allow for a depth to be set in cases where you need more than the immediate last commit. Has no effect if shallow is set to false (default)- Parameters:
depth
- number of revisions to be included in shallow clone- Returns:
- a
CloneCommand
object.
-
prune(boolean)