Package org.jenkinsci.plugins.gitclient
Interface FetchCommand
-
- All Superinterfaces:
GitCommand
public interface FetchCommand extends GitCommand
FetchCommand interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description FetchCommanddepth(Integer depth)When shallow cloning, allow for a depth to be set in cases where you need more than the immediate last commit.FetchCommandfrom(org.eclipse.jgit.transport.URIish remote, List<org.eclipse.jgit.transport.RefSpec> refspecs)from.FetchCommandprune()Deprecated.favourprune(boolean)FetchCommandprune(boolean prune)prune.FetchCommandshallow(boolean shallow)shallow.FetchCommandtags(boolean tags)FetchCommandtimeout(Integer timeout)timeout.-
Methods inherited from interface org.jenkinsci.plugins.gitclient.GitCommand
execute
-
-
-
-
Method Detail
-
from
FetchCommand from(org.eclipse.jgit.transport.URIish remote, List<org.eclipse.jgit.transport.RefSpec> refspecs)
from.- Parameters:
remote- aURIishobject.refspecs- aListobject.- Returns:
- a
FetchCommandobject.
-
prune
@Deprecated FetchCommand prune()
Deprecated.favourprune(boolean)prune.- Returns:
- a
FetchCommandobject.
-
prune
FetchCommand prune(boolean prune)
prune.- Parameters:
prune-trueif the fetch should prune.- Returns:
- a
FetchCommandobject. - Since:
- 2.5.0
-
shallow
FetchCommand shallow(boolean shallow)
shallow.- Parameters:
shallow- a boolean.- Returns:
- a
FetchCommandobject.
-
timeout
FetchCommand timeout(Integer timeout)
timeout.- Parameters:
timeout- aIntegerobject.- Returns:
- a
FetchCommandobject.
-
tags
FetchCommand tags(boolean tags)
-
depth
FetchCommand depth(Integer 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
CloneCommandobject.
-
-