# tasks/ext/git/GitInitTask.php

## \GitInitTask
jump to top

Package: phing\tasks\ext\git

Repository initialization task

Parent(s)
  \GitBaseTask < \Task < \ProjectComponent
See
  \VersionControl_Git
Author
  Victor Farazdagi
Since
  2.4.3
Version
  $Id: GitInitTask.php 847 2010-09-03 23:43:33Z victor $

### Properties

`\VersionControl_Git $gitClient= 'null'`
inherited

Inherited from: \GitBaseTask::$$gitClient
Default value `null` Details

Type
  \VersionControl_Git
Inherited_from
  \GitBaseTask::$$gitClient

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

Bath to git binary

Inherited from: \GitBaseTask::$$gitPath
Default value`'/usr/bin/git'`Details

Type
  string
Inherited_from
  \GitBaseTask::$$gitPath

`string $isBare= 'false'`

Whether --bare key should be set for git-init

Default value `false` Details

Type
  string

`string $repository= ''`
inherited

Current repository directory

Inherited from: \GitBaseTask::$$repository
Details

Type
  string
Inherited_from
  \GitBaseTask::$$repository

### Methods

`getBare( ) : void`

`getDescription( ) : void`
inherited

Inherited from: Task::getDescription()\GitBaseTask::getDescription()
`getGitClient( $reset = false, $repository = null ) : void`
inherited

Inherited from: \GitBaseTask::getGitClient()
Parameters

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

`getGitPath( ) : string`
inherited

Get path to git executable

Inherited from: \GitBaseTask::getGitPath()
Returns

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

`getLocation( ) : void`
inherited

Inherited from: Task::getLocation()\GitBaseTask::getLocation()
`getOwningTarget( ) : void`
inherited

Inherited from: Task::getOwningTarget()\GitBaseTask::getOwningTarget()
`getProject( ) : void`
inherited

Inherited from: ProjectComponent::getProject()\GitBaseTask::getProject()
`getRegisterSlot( ) : void`
inherited

Inherited from: Task::getRegisterSlot()\GitBaseTask::getRegisterSlot()
`getRepository( ) : string`
inherited

Get repository directory

Inherited from: \GitBaseTask::getRepository()
Returns

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

`getRuntimeConfigurableWrapper( ) : void`
inherited

Inherited from: Task::getRuntimeConfigurableWrapper()\GitBaseTask::getRuntimeConfigurableWrapper()
`getTaskName( ) : void`
inherited

Inherited from: Task::getTaskName()\GitBaseTask::getTaskName()
`getTaskType( ) : void`
inherited

Inherited from: Task::getTaskType()\GitBaseTask::getTaskType()
`init( ) : void`
inherited

Initialize Task.

Inherited from: \GitBaseTask::init()

Check and include necessary libraries.

`isBare( ) : string`

Alias @see getBare()

Returns

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

`log( ) : void`
inherited

Inherited from: Task::log()\GitBaseTask::log()
`main( ) : void`

The main entry point for the task

`maybeConfigure( ) : void`
inherited

Inherited from: Task::maybeConfigure()\GitBaseTask::maybeConfigure()
`perform( ) : void`
inherited

Inherited from: Task::perform()\GitBaseTask::perform()
`setBare( $flag ) : void`

Parameters

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

`setDescription( ) : void`
inherited

Inherited from: Task::setDescription()\GitBaseTask::setDescription()
`setGitPath( string $gitPath ) : \GitBaseTask`
inherited

Set path to git executable

Inherited from: \GitBaseTask::setGitPath()
Parameters

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

Returns

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

`setLocation( ) : void`
inherited

Inherited from: Task::setLocation()\GitBaseTask::setLocation()
`setOwningTarget( ) : void`
inherited

Inherited from: Task::setOwningTarget()\GitBaseTask::setOwningTarget()
`setProject( ) : void`
inherited

Inherited from: ProjectComponent::setProject()\GitBaseTask::setProject()
`setRepository( string $repository ) : \GitBaseTask`
inherited

Set repository directory

Inherited from: \GitBaseTask::setRepository()
Parameters

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

Returns

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

`setRuntimeConfigurableWrapper( ) : void`
inherited

Inherited from: Task::setRuntimeConfigurableWrapper()\GitBaseTask::setRuntimeConfigurableWrapper()
`setTaskName( ) : void`
inherited

Inherited from: Task::setTaskName()\GitBaseTask::setTaskName()
`setTaskType( ) : void`
inherited

Inherited from: Task::setTaskType()\GitBaseTask::setTaskType()
Documentation was generated by DocBlox 0.17.1.