PHP 클래스 yii2tech\selfupdate\Git

또한 보기: https://git-scm.com/
부터: 1.0
저자: Paul Klimov ([email protected])
상속: extends VersionControlSystem
파일 보기 프로젝트 열기: yii2tech/selfupdate

공개 프로퍼티들

프로퍼티 타입 설명
$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.

메소드 상세

applyRemoteChanges() 공개 메소드

Applies changes from remote repository.
public applyRemoteChanges ( string $projectRoot, string &$log = null ) : boolean
$projectRoot string VCS project root directory path.
$log string if parameter passed it will be filled with related log string.
리턴 boolean whether the changes have been applied successfully.

getCurrentBranch() 공개 메소드

Returns currently active GIT branch name for the project.
public getCurrentBranch ( string $projectRoot ) : string
$projectRoot string VCS project root directory path.
리턴 string branch name.

hasRemoteChanges() 공개 메소드

Checks, if there are some changes in remote repository.
public hasRemoteChanges ( string $projectRoot, string &$log = null ) : boolean
$projectRoot string VCS project root directory path.
$log string if parameter passed it will be filled with related log string.
리턴 boolean whether there are changes in remote repository.

프로퍼티 상세

$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.
public $binPath

$remoteName 공개적으로 프로퍼티

name of the GIT remote, which should be used to get changes.
public $remoteName