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

static array
extractDataFormTextBody(array $commit)

Extract committer, author and message from commit body

array|null
getGitRevisionInfo()

No description

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

static array extractDataFormTextBody(array $commit)

Extract committer, author and message from commit body

Parameters

array $commit

The commit body

Return Value

array

array|null getGitRevisionInfo()

No description

Return Value

array|null

array|null checkGitRevision()

detects Git revision, if running inside repo

Return Value

array|null