Executes semantic Git operations using the local Git binary.
Interfaces
Properties
Methods
: mixed
getConfig()
: string
Returns a Git config value for the selected repository.
show()
: string
Returns the file contents shown from a specific Git reference.
run()
: string
Executes a Git process and returns trimmed stdout.
private
ProcessBuilderInterface
$processBuilder
private
ProcessQueueInterface
$processQueue
public
__construct(ProcessBuilderInterface
$processBuilder, ProcessQueueInterface
$processQueue) : mixed
Parameters
Returns a Git config value for the selected repository.
public
getConfig(
string
$key[,
string|null
$workingDirectory = null]) : string
Parameters
$key
:
string
$workingDirectory
:
string|null
=
null
Return values
string
Returns the file contents shown from a specific Git reference.
public
show(
string
$reference,
string
$path[,
string|null
$workingDirectory = null]) : string
Parameters
$reference
:
string
$path
:
string
$workingDirectory
:
string|null
=
null
Return values
string
Executes a Git process and returns trimmed stdout.
private
run(Process
$process[,
string|null
$workingDirectory = null]) : string
Parameters
$process
:
Process
$workingDirectory
:
string|null
=
null
Return values
string