# classes/phing/tasks/ext/git/GitFetchTask.php

## \GitFetchTask
jump to top

Wrapper aroung git-fetch

Use {@link Project#createTask} to register a new Task.

Extends from
  \GitBaseTask
see
  \VersionControl_Git
author
  Victor Farazdagi
copyright
  2001,2002 THYRELL. All rights reserved
package
  phing.tasks.ext.git
since
  2.4.3
version
  $Id: GitFetchTask.php 1051 2011-03-02 19:40:51Z victor $

### Properties

`boolean $allRemotes= 'false'`

Fetch all remotes --all key to git-fetch

Default value `false` Details

Type
  boolean

`boolean $force= 'false'`

--force, -f key to git-fetch

Default value `false` Details

Type
  boolean

`string $group= ''`

<group> argument to git-fetch

Details

Type
  string

`boolean $keepFiles= 'false'`

Keep downloaded pack --keep key to git-fetch

Default value `false` Details

Type
  boolean

`boolean $noTags= 'false'`

Disable/enable automatic tag following --no-tags key to git-fetch

Default value `false` Details

Type
  boolean

`boolean $prune= 'false'`

After fetching, remove any remote tracking branches which no longer exist on the remote.

--prune key to git fetch

Default value `false` Details

Type
  boolean

`boolean $quiet= 'false'`

--quiet, -q key to git-fetch

Default value `false` Details

Type
  boolean

`string $refspec= ''`

<refspec> argument to git-fetch

Details

Type
  string

`string $source= 'origin'`

<repository> argument to git-fetch

Default value `origin` Details

Type
  string

`boolean $tags= 'false'`

Fetch all tags (even not reachable from branch heads) --tags key to git-fetch

Default value `false` Details

Type
  boolean

### Methods

`getAll( ) :`
`getForce( ) :`
`getGroup( ) :`
`getKeep( ) :`
`getNoTags( ) :`
`getPrune( ) :`
`getQuiet( ) :`
`getRefspec( ) :`
`getSource( ) :`
`getTags( ) :`
`isAllRemotes( ) :`
`isForce( ) :`
`isKeepFiles( ) :`
`isNoTags( ) :`
`isPrune( ) :`
`isQuiet( ) :`
`isTags( ) :`
`main( ) :`
The main entry point for the task
`setAll( $flag ) :`
Parameters

Name | Type | Description
--- | --- | ---
$flag |  |

`setForce( $flag ) :`
Parameters

Name | Type | Description
--- | --- | ---
$flag |  |

`setGroup( $group ) :`
Parameters

Name | Type | Description
--- | --- | ---
$group |  |

`setKeep( $flag ) :`
Parameters

Name | Type | Description
--- | --- | ---
$flag |  |

`setNoTags( $flag ) :`
Parameters

Name | Type | Description
--- | --- | ---
$flag |  |

`setPrune( $flag ) :`
Parameters

Name | Type | Description
--- | --- | ---
$flag |  |

`setQuiet( $flag ) :`
Parameters

Name | Type | Description
--- | --- | ---
$flag |  |

`setRefspec( $spec ) :`
Parameters

Name | Type | Description
--- | --- | ---
$spec |  |

`setSource( $source ) :`
Parameters

Name | Type | Description
--- | --- | ---
$source |  |

`setTags( $flag ) :`
Parameters

Name | Type | Description
--- | --- | ---
$flag |  |

Documentation was generated by DocBlox 0.13.1.