public interface

DetailedChangeset

com.atlassian.stash.content.DetailedChangeset

Class Overview

Describes a set of changes between two commits. If this class is used to describe the changes that have been made in a simple commit with a single parent, fromCommit refers to the parent commit, while toCommit refers to the commit itself.

This class can also be used to return the results of an arbitrary diff.

Summary

Public Methods
@Nullable Page<? extends Change> getChanges()
Retrieves the first page of changes for this changeset.
@Nullable MinimalChangeset getFromCommit()
@Nonnull Changeset getToCommit()

Public Methods

@Nullable public Page<? extends Change> getChanges ()

Retrieves the first page of changes for this changeset. If it is not the last page, more changes can be retrieved using:

Returns
  • the first page of changes

@Nullable public MinimalChangeset getFromCommit ()

Returns
  • the 'from' commit.

@Nonnull public Changeset getToCommit ()

Returns
  • the 'to' commit.