프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$branch | Git branch | ||
$revision | Git revision |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$repo | Git repository |
메소드 | 설명 | |
---|---|---|
__construct ( null $repo = null ) | Git constructor. | |
checkout ( string $branch, string $repoPath = null ) : array | Checkout given $branch. | |
command ( string $command, string $repoPath = null ) : array | Runs a git command and returns the output (as an array). | |
diff ( string $remoteRevision, string $localRevision, string $repoPath = null ) : array | Diff versions. | |
exec ( string $command ) : array | Executes a console command and returns the output (as an array). |