A commit.
| Type | Name and description |
|---|---|
Person |
authorThe author of the changes in the commit. |
Person |
committerThe committer of the changes in the commit. |
java.time.ZonedDateTime |
dateTimeThe time the commit was created with the time zone of the committer, if available. |
java.lang.String |
fullMessageThe full commit message. |
java.lang.String |
idThe full hash of the commit. |
java.util.List<java.lang.String> |
parentIdsHashes of any parent commits. |
java.lang.String |
shortMessageThe shortened commit message. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.String |
getAbbreviatedId(int length = 7)The first length characters of the commit hash. |
|
java.util.Date |
getDate()The time the commit was created. |
|
long |
getTime()The time the commit was created in seconds since "the epoch". |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The author of the changes in the commit.
The committer of the changes in the commit.
The time the commit was created with the time zone of the committer, if available.
The full commit message.
The full hash of the commit.
Hashes of any parent commits.
The shortened commit message.
The first length characters of the commit hash.
length - the number of characters to abbreviate the
hash to (defaults to 7)The time the commit was created.
The time the commit was created in seconds since "the epoch".