class Git (View source)

Git class to manipulate Git data

Methods

__construct(bool $showGitRevision, string|null $baseDir = null)

No description

bool
hasGitInformation()

No description

bool
isGitRevision(string|null $gitLocation = null)

detects if Git revision

array|null
checkGitRevision()

detects Git revision, if running inside repo

Details

__construct(bool $showGitRevision, string|null $baseDir = null)

No description

Parameters

bool $showGitRevision

Enable Git information search and process

string|null $baseDir

bool hasGitInformation()

No description

Return Value

bool

bool isGitRevision(string|null $gitLocation = null)

detects if Git revision

Parameters

string|null $gitLocation

(optional) verified git directory

Return Value

bool

array|null checkGitRevision()

detects Git revision, if running inside repo

Return Value

array|null