Свойство | Тип | Описание | |
---|---|---|---|
$binPath | path to the 'git' bin command. By default simple 'git' is used assuming it available as global shell command. It could be '/usr/bin/git' for example. | ||
$remoteName | name of the GIT remote, which should be used to get changes. |
Метод | Описание | |
---|---|---|
applyRemoteChanges ( string $projectRoot, string &$log = null ) : boolean | Applies changes from remote repository. | |
getCurrentBranch ( string $projectRoot ) : string | Returns currently active GIT branch name for the project. | |
hasRemoteChanges ( string $projectRoot, string &$log = null ) : boolean | Checks, if there are some changes in remote repository. |
public getCurrentBranch ( string $projectRoot ) : string | ||
$projectRoot | string | VCS project root directory path. |
Результат | string | branch name. |
public $binPath |