# tasks/ext/git/GitBaseTask.php

## \GitBaseTask
jump to top

Package: phing\tasks\ext\git

Base class for Git tasks

Parent(s)
  \Task < \ProjectComponent
Children
  \GitTagTask
  \GitFetchTask
  \GitCheckoutTask
  \GitGcTask
  \GitBranchTask
  \GitMergeTask
  \GitPushTask
  \GitInitTask
  \GitCloneTask
  \GitPullTask
  \GitLogTask
See
  \VersionControl_Git
Author
  Victor Farazdagi
Since
  2.4.3
Version
  $Id: GitBaseTask.php 1122 2011-05-31 13:35:28Z mrook $

### Properties

`\VersionControl_Git $gitClient= 'null'`

Default value `null` Details

Type
  \VersionControl_Git

`string $gitPath= ''/usr/bin/git''`

Bath to git binary

Default value`'/usr/bin/git'`Details

Type
  string

`string $repository= ''`

Current repository directory

Details

Type
  string

### Methods

`getDescription( ) : void`

`getGitClient( $reset = false, $repository = null ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$reset |  |
$repository |  |

`getGitPath( ) : string`

Get path to git executable

Returns

Type | Description
--- | ---
string |

`getLocation( ) : void`

`getOwningTarget( ) : void`

`getProject( ) : void`

`getRegisterSlot( ) : void`

`getRepository( ) : string`

Get repository directory

Returns

Type | Description
--- | ---
string |

`getRuntimeConfigurableWrapper( ) : void`

`getTaskName( ) : void`

`getTaskType( ) : void`

`init( ) : void`

Initialize Task.

Check and include necessary libraries.

`log( ) : void`

`main( ) : void`
abstract

`maybeConfigure( ) : void`

`perform( ) : void`

`setDescription( ) : void`

`setGitPath( string $gitPath ) : \GitBaseTask`

Set path to git executable

Parameters

Name | Type | Description
--- | --- | ---
$gitPath | string | New path to git repository

Returns

Type | Description
--- | ---
\GitBaseTask |

`setLocation( ) : void`

`setOwningTarget( ) : void`

`setProject( ) : void`

`setRepository( string $repository ) : \GitBaseTask`

Set repository directory

Parameters

Name | Type | Description
--- | --- | ---
$repository | string | Repo directory

Returns

Type | Description
--- | ---
\GitBaseTask |

`setRuntimeConfigurableWrapper( ) : void`

`setTaskName( ) : void`

`setTaskType( ) : void`

Documentation was generated by DocBlox 0.17.1.