GitCommit
class GitCommit extends AbstractObject implements IdAble, Node
An immutable git commit.
Properties
| $lastQuery | from AbstractObject |
Methods
No description
The latest semver release tag reachable from this commit.
Git author email.
Git author name.
Git author date, in RFC3339 format.
Git committer date, in RFC3339 format.
Git committer email.
Git committer name.
Full commit message.
Commit message body, excluding the headline.
First line of the commit message.
Parent commit SHAs.
The latest semver release tag that points directly at this commit.
The full commit SHA.
The abbreviated commit SHA.
Details
in
AbstractObject at line 13
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)
No description
in
AbstractObject at line 19
protected null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
at line 19
GitRef|null
ancestorReleaseTag(bool|null $includePreRelease = false)
The latest semver release tag reachable from this commit.
at line 36
string
authorEmail()
Git author email.
at line 45
string
authorName()
Git author name.
at line 54
string
authoredDate()
Git author date, in RFC3339 format.
at line 63
string
committedDate()
Git committer date, in RFC3339 format.
at line 72
string
committerEmail()
Git committer email.
at line 81
string
committerName()
Git committer name.
at line 90
Id
id()
A unique identifier for this GitCommit.
at line 99
string
message()
Full commit message.
at line 108
string
messageBody()
Commit message body, excluding the headline.
at line 117
string
messageHeadline()
First line of the commit message.
at line 126
array
parentShas()
Parent commit SHAs.
at line 135
GitRef|null
releaseTag(bool|null $includePreRelease = false)
The latest semver release tag that points directly at this commit.
at line 152
string
sha()
The full commit SHA.
at line 161
string
shortSha()
The abbreviated commit SHA.
at line 170
Directory
tree(bool|null $discardGitDir = false, int|null $depth = 1, bool|null $includeTags = false)
The filesystem tree at this commit.