public interface

Changeset

implements MinimalChangeset PropertySupport
com.atlassian.stash.content.Changeset

Class Overview

Describes a changeset / commit.

Summary

Fields
public static final Function<ChangesetPerson> TO_AUTHOR
[Expand]
Inherited Fields
From interface com.atlassian.stash.content.MinimalChangeset
Public Methods
@Nonnull Person getAuthor()
Date getAuthorTimestamp()
String getMessage()
Collection<MinimalChangeset> getParents()
@Nullable Repository getRepository()
[Expand]
Inherited Methods
From interface com.atlassian.stash.content.AttributeSupport
From interface com.atlassian.stash.content.MinimalChangeset
From interface com.atlassian.stash.property.PropertySupport

Fields

public static final Function<ChangesetPerson> TO_AUTHOR

Public Methods

@Nonnull public Person getAuthor ()

Returns
  • The author of the changeset

public Date getAuthorTimestamp ()

Returns
  • The timestamp of the changeset. Precision is in seconds

public String getMessage ()

Returns
  • the commit message

public Collection<MinimalChangeset> getParents ()

Returns
  • the changeset parents

@Nullable public Repository getRepository ()

Returns
  • the repository that this changeset belongs to. For reasons of performance and conciseness this field may be null depending on the service used to construct this changeset. If an explicit repository context has been provided by some other mechanism (for example, web-fragments on the changeset page will have an explicit 'repository' object in their render context) it is preferable to use that instead of this method.