Git
in package
Tags
Table of Contents
- $config : Config
- $filesystem : Filesystem
- $io : IOInterface
- $process : ProcessExecutor
- $version : mixed
- __construct() : mixed
- cleanEnv() : mixed
- fetchRefOrSyncMirror() : mixed
- getGitHubDomainsRegex() : mixed
- getGitLabDomainsRegex() : mixed
- getNoShowSignatureFlag() : mixed
- getVersion() : string|null
- Retrieves the current git version.
- runCommand() : mixed
- sanitizeUrl() : mixed
- syncMirror() : mixed
- checkRefIsInMirror() : mixed
- isAuthenticationFailure() : mixed
- throwException() : mixed
Properties
$config
protected
Config
$config
$filesystem
protected
Filesystem
$filesystem
$io
protected
IOInterface
$io
$process
protected
ProcessExecutor
$process
$version
private
static mixed
$version
= false
Methods
__construct()
public
__construct(IOInterface $io, Config $config, ProcessExecutor $process, Filesystem $fs) : mixed
Parameters
- $io : IOInterface
- $config : Config
- $process : ProcessExecutor
- $fs : Filesystem
Return values
mixed —cleanEnv()
public
static cleanEnv() : mixed
Return values
mixed —fetchRefOrSyncMirror()
public
fetchRefOrSyncMirror(mixed $url, mixed $dir, mixed $ref) : mixed
Parameters
- $url : mixed
- $dir : mixed
- $ref : mixed
Return values
mixed —getGitHubDomainsRegex()
public
static getGitHubDomainsRegex(Config $config) : mixed
Parameters
- $config : Config
Return values
mixed —getGitLabDomainsRegex()
public
static getGitLabDomainsRegex(Config $config) : mixed
Parameters
- $config : Config
Return values
mixed —getNoShowSignatureFlag()
public
static getNoShowSignatureFlag(ProcessExecutor $process) : mixed
Parameters
- $process : ProcessExecutor
Return values
mixed —getVersion()
Retrieves the current git version.
public
static getVersion([ProcessExecutor $process = null ]) : string|null
Parameters
- $process : ProcessExecutor = null
Return values
string|null —The git version number.
runCommand()
public
runCommand(mixed $commandCallable, mixed $url, mixed $cwd[, mixed $initialClone = false ]) : mixed
Parameters
- $commandCallable : mixed
- $url : mixed
- $cwd : mixed
- $initialClone : mixed = false
Return values
mixed —sanitizeUrl()
public
static sanitizeUrl(mixed $message) : mixed
Parameters
- $message : mixed
Return values
mixed —syncMirror()
public
syncMirror(mixed $url, mixed $dir) : mixed
Parameters
- $url : mixed
- $dir : mixed
Return values
mixed —checkRefIsInMirror()
private
checkRefIsInMirror(mixed $url, mixed $dir, mixed $ref) : mixed
Parameters
- $url : mixed
- $dir : mixed
- $ref : mixed
Return values
mixed —isAuthenticationFailure()
private
isAuthenticationFailure(mixed $url, mixed &$match) : mixed
Parameters
- $url : mixed
- $match : mixed
Return values
mixed —throwException()
private
throwException(mixed $message, mixed $url) : mixed
Parameters
- $message : mixed
- $url : mixed