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
ancestorReleaseTag(bool|null $includePreRelease = false)
The latest semver release tag reachable from this commit.
at line 31
string
authorEmail()
Git author email.
at line 40
string
authorName()
Git author name.
at line 49
string
authoredDate()
Git author date, in RFC3339 format.
at line 58
string
committedDate()
Git committer date, in RFC3339 format.
at line 67
string
committerEmail()
Git committer email.
at line 76
string
committerName()
Git committer name.
at line 85
Id
id()
A unique identifier for this GitCommit.
at line 94
string
message()
Full commit message.
at line 103
string
messageBody()
Commit message body, excluding the headline.
at line 112
string
messageHeadline()
First line of the commit message.
at line 121
array
parentShas()
Parent commit SHAs.
at line 130
GitRef
releaseTag(bool|null $includePreRelease = false)
The latest semver release tag that points directly at this commit.
at line 142
string
sha()
The full commit SHA.
at line 151
string
shortSha()
The abbreviated commit SHA.
at line 160
Directory
tree(bool|null $discardGitDir = false, int|null $depth = 1, bool|null $includeTags = false)
The filesystem tree at this commit.