com.atlassian.bitbucket.commit.Commit |
Known Indirect Subclasses |
Describes a single commit. A commit represents a snapshot of a repository at a given point in time, with additional metadata detailing who authored the commit and when, any message provided, and some number of parents (which may be zero). Parents represent a commit's direct ancestors. Commits generally have a single parent, but:
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TO_AUTHOR |
This field is deprecated.
in 4.0 for removal in 5.0. With Java 8, Commit::getAuthor can be used instead.
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.bitbucket.commit.MinimalCommit
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the
repository this commit was loaded from, if it's available. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.bitbucket.commit.MinimalCommit
| |||||||||||
From interface
com.atlassian.bitbucket.property.PropertySupport
|
This field is deprecated.
in 4.0 for removal in 5.0. With Java 8, Commit::getAuthor
can be used instead.
null
Retrieves the 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.