GitClientInterface

Interface

Provides semantic Git operations for repository-aware services.

Table of Contents

Methods

getConfig()

Returns a Git config value for the selected repository.

 : string
show()

Returns the file contents shown from a specific Git reference.

 : string
Methods

getConfig()

Public

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

show()

Public

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