Property | Type | Description | |
---|---|---|---|
$branch | Git branch | ||
$revision | Git revision |
Property | Type | Description | |
---|---|---|---|
$repo | Git repository |
Method | Description | |
---|---|---|
__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). |