|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.DefaultTask
org.ajoberstar.gradle.git.tasks.GitBase
org.ajoberstar.gradle.git.tasks.GitFetch
public class GitFetch extends GitBase
Task to fetch named heads or tags from one or more other repositories, along with the objects necessary to complete them.
Method Summary | |
---|---|
void
|
credentials(groovy.lang.Closure closure)
Configured the credentials to be used when cloning the repo. |
void
|
fetch()
Fetches remote changes into a local Git repository. |
boolean
|
getCheckFetchedObjects()
Gets whether received objects will be checked for validity. |
PasswordCredentials
|
getCredentials()
Gets the credentials to be used when cloning the repo. |
boolean
|
getDryRun()
Gets whether the fetch operation will be a dry run |
java.lang.Object
|
getFetchTags()
Gets whether tags will be fetched. |
java.util.List
|
getRefspecs()
Gets the refspecs of the fetch command. |
java.lang.String
|
getRemote()
Gets the name used to track the upstream repository. |
boolean
|
getRemoveDeletedRefs()
Gets whether refs which no longer exist in the source will be removed |
boolean
|
getThin()
Gets the thin-pack preference for fetch operation |
void
|
refspecs(java.lang.Object... refs)
Adds refspecs to fetch from the remote repository. |
void
|
setCheckFetchedObjects(boolean checkObjects)
If set to true, the received objects will be checked for validity. |
void
|
setCredentials(PasswordCredentials credentials)
Sets the credentials to use when cloning the repo. |
void
|
setDryRun(boolean dryRun)
Sets whether the fetch operation should be a dry run. |
void
|
setFetchTags(java.lang.Object fetchTags)
Sets the specification of annotated tag behavior during fetch. |
void
|
setRefspecs(java.util.List refsToFetch)
Sets refspecs for the fetch command. |
void
|
setRemote(java.lang.Object remote)
Sets the name used to track the upstream repository. |
void
|
setRemoveDeletedRefs(boolean remRefs)
If set to true, refs which no longer exist in the source will be removed. |
void
|
setThin(boolean thin)
Sets the thin-pack preference for fetch operation. |
Methods inherited from class GitBase | |
---|---|
getGit, getRepoDir, setRepoPath |
Method Detail |
---|
ssWarnings("rawtypes") public public void credentials(groovy.lang.Closure closure)
closure
- the configuration closure
tion public public void fetch()
public public boolean getCheckFetchedObjects()
@Option al public public PasswordCredentials getCredentials()
public public boolean getDryRun()
@Option al public public java.lang.Object getFetchTags()
@Option al public public java.util.List getRefspecs()
public public java.lang.String getRemote()
public public boolean getRemoveDeletedRefs()
public public boolean getThin()
public void refspecs(java.lang.Object... refs)
The format of a refspec parameter is an optional plus +, followed by the source ref src, followed by a colon :, followed by the destination ref dst.
The remote ref that matches src is fetched, and if dst is not empty string, the local ref that matches it is fast-forwarded using src. If the optional plus + is used, the local ref is updated even if it does not result in a fast-forward update.
If no refspec is specified, all the remote-tracking branches will be fetched.refs
- the refspecs to fetch
public void setCheckFetchedObjects(boolean checkObjects)
checkObjects
- whether to check objects for validity
public void setCredentials(PasswordCredentials credentials)
credentials
- the credentials
public void setDryRun(boolean dryRun)
dryRun
- whether the fetch operation should be a dry run
public void setFetchTags(java.lang.Object fetchTags)
fetchTags
- the specification of tag behavior during
fetch. Must be one of the following values:
ssWarnings("unchecked") public public void setRefspecs(java.util.List refsToFetch)
The format of a refspec parameter is an optional plus +, followed by the source ref src, followed by a colon :, followed by the destination ref dst.
The remote ref that matches src is fetched, and if dst is not empty string, the local ref that matches it is fast-forwarded using src. If the optional plus + is used, the local ref is updated even if it does not result in a fast-forward update.
If no refspec is specified, all the remote-tracking branches will be fetched.refsToFetch
- the refspecs to fetch
public void setRemote(java.lang.Object remote)
remote
- the remote name
public void setRemoveDeletedRefs(boolean remRefs)
remRefs
- whether refs which no longer exist should be removed
public void setThin(boolean thin)
thin
- whether the transport preference will be thin
Groovy Documentation