Méthode | Description | |
---|---|---|
__construct ( Bart\Git\GitRoot $root, string $revision, string $projectName = null ) | ||
__toString ( ) : string | ||
author ( ) : |
The author of the commit (person who originally wrote the work) | |
committer ( ) : |
The committer of the commit (person who last applied the work) | |
gerritChangeId ( ) : string | ||
getProjectName ( ) : string | ||
jiras ( ) : Bart\Jira\JiraIssue[] | ||
message ( ) | ||
messageFull ( ) : string | ||
messageRawBody ( ) : string | ||
messageSubject ( ) : string | ||
rawFileContents ( string $filePath ) : string | ||
revision ( ) : string |
Méthode | Description | |
---|---|---|
gitShowFormatOutput ( string $format, string $exceptionMsg ) : string | The output from git show with a specific format (--format={$format} flag) and suppressed diff output (-s flag) |
public __construct ( Bart\Git\GitRoot $root, string $revision, string $projectName = null ) | ||
$root | Bart\Git\GitRoot | Root of repo on disk |
$revision | string | The revision label of commit, typically the hash. |
$projectName | string | Project in which commit was made. This defaults to `null` for backwards compatibility See `man git-rev-parse` "SPECIFYING REVISIONS" for valid names |
public author ( ) : |
||
Résultat |
public committer ( ) : |
||
Résultat |
public getProjectName ( ) : string | ||
Résultat | string | Name of the repository in which commit was made. This may or may not include the ".git" suffix |
public jiras ( ) : Bart\Jira\JiraIssue[] | ||
Résultat | Bart\Jira\JiraIssue[] | Any matched Jira Issue from commit message |
public messageFull ( ) : string | ||
Résultat | string | The full commit log message |
public messageRawBody ( ) : string | ||
Résultat | string | The unwrapped subject and body of the commit message (just the log message, not the author, etc.) |
public messageSubject ( ) : string | ||
Résultat | string | The first non-blank lines of the commit message |
public rawFileContents ( string $filePath ) : string | ||
$filePath | string | the path to the file from the project root |
Résultat | string | The raw contents of the file |