# tasks/ext/git/GitCheckoutTask.php

## \GitCheckoutTask
jump to top

Package: phing\tasks\ext\git

Wrapper around git-checkout

Parent(s)
  \GitBaseTask < \Task < \ProjectComponent
See
  \VersionControl_Git
Author
  Victor Farazdagi
Since
  2.4.3
Version
  $Id: GitCheckoutTask.php 1051 2011-03-02 19:40:51Z victor $

### Properties

`string $branchname= ''`

Branch name

Details

Type
  string

`array $extraOptions= 'array( 'b' => false'`

-b, -B, -m options to git-checkout Respective task options: create, forceCreate, merge

Default value `array( 'b' => false` Details

Type
  array

`boolean $force= 'false'`

--force, -f key to git-checkout

Default value `false` Details

Type
  boolean

`boolean $noTrack= 'false'`

Do not set up "upstream" configuration --no-track key to git-checkout

Default value `false` Details

Type
  boolean

`boolean $quiet= 'false'`

--quiet, -q key to git-checkout

Default value `false` Details

Type
  boolean

`string $startPoint= ''`

If not HEAD, specify starting point

Details

Type
  string

`boolean $track= 'false'`

When creating a new branch, set up "upstream" configuration.

--track key to git-checkout

Default value `false` Details

Type
  boolean

### Methods

`getBranchname( ) : void`

`getCreate( ) : void`

`getDescription( ) : void`

`getForce( ) : void`

`getForceCreate( ) : void`

`getGitClient( ) : void`

`getGitPath( ) : void`

`getLocation( ) : void`

`getMerge( ) : void`

`getNoTrack( ) : void`

`getOwningTarget( ) : void`

`getProject( ) : void`

`getQuiet( ) : void`

`getRegisterSlot( ) : void`

`getRepository( ) : void`

`getRuntimeConfigurableWrapper( ) : void`

`getStartPoint( ) : void`

`getTaskName( ) : void`

`getTaskType( ) : void`

`getTrack( ) : void`

`init( ) : void`

`isCreate( ) : void`

`isForce( ) : void`

`isForceCreate( ) : void`

`isMerge( ) : void`

`isNoTrack( ) : void`

`isQuiet( ) : void`

`isTrack( ) : void`

`log( ) : void`

`main( ) : void`

The main entry point for the task

`maybeConfigure( ) : void`

`perform( ) : void`

`setBranchname( $branchname ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$branchname |  |

`setCreate( $flag ) : void`

Parameters

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

`setDescription( ) : void`

`setForce( $flag ) : void`

Parameters

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

`setForceCreate( $flag ) : void`

Parameters

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

`setGitPath( ) : void`

`setLocation( ) : void`

`setMerge( $flag ) : void`

Parameters

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

`setNoTrack( $flag ) : void`

Parameters

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

`setOwningTarget( ) : void`

`setProject( ) : void`

`setQuiet( $flag ) : void`

Parameters

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

`setRepository( ) : void`

`setRuntimeConfigurableWrapper( ) : void`

`setStartPoint( $startPoint ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$startPoint |  |

`setTaskName( ) : void`

`setTaskType( ) : void`

`setTrack( $flag ) : void`

Parameters

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

Documentation was generated by DocBlox 0.17.1.