Skip to content

GitClient

github-actions edited this page Apr 19, 2026 · 1 revision

Executes semantic Git operations using the local Git binary.


Methods

__construct

public __construct(\FastForward\DevTools\Process\ProcessBuilderInterface $processBuilder, \FastForward\DevTools\Process\ProcessQueueInterface $processQueue): mixed

Parameters:

Parameter Type Description
$processBuilder \FastForward\DevTools\Process\ProcessBuilderInterface
$processQueue \FastForward\DevTools\Process\ProcessQueueInterface

getConfig

Returns a Git config value for the selected repository.

public getConfig(string $key, ?string $workingDirectory = null): string

Parameters:

Parameter Type Description
$key string
$workingDirectory ?string

show

Returns the file contents shown from a specific Git reference.

public show(string $reference, string $path, ?string $workingDirectory = null): string

Parameters:

Parameter Type Description
$reference string
$path string
$workingDirectory ?string

Clone this wiki locally