public interface Commit extends PropertySupport, MinimalCommit
Modifier and Type | Method and Description |
---|---|
Person |
getAuthor() |
Date |
getAuthorTimestamp() |
default Person |
getCommitter() |
default Date |
getCommitterTimestamp() |
String |
getMessage() |
Collection<MinimalCommit> |
getParents() |
Repository |
getRepository()
Retrieves the
repository this commit was loaded from, if it's available. |
getProperties
getDisplayId, getId
@Nonnull Date getAuthorTimestamp()
@Nonnull default Person getCommitter()
@Nonnull default Date getCommitterTimestamp()
@Nonnull Collection<MinimalCommit> getParents()
null
@Nullable Repository getRepository()
repository
this commit was loaded from, if it's available.
Note: For reasons of performance and conciseness this field may be null
depending on the service
used to construct this commit. If an explicit repository context has been provided by some other mechanism (for
example, web-fragments on the commit page will have an explicit 'repository' object in their render context) it
is preferable to use that instead of this.
Copyright © 2022 Atlassian. All rights reserved.