Class ChangesetsRequest

java.lang.Object
com.atlassian.bitbucket.commit.ChangesetsRequest

public class ChangesetsRequest extends Object
Defines a request to retrieve changesets for a given set of commits. If any of the specified commits have multiple parents, the changeset retrieved will be relative to the first parent.
  • Method Details

    • getCommitIds

      @Nonnull public Iterable<String> getCommitIds()
      Returns:
      a collection containing one or more commit IDs to build changesets for
    • getMaxMessageLength

      public int getMaxMessageLength()
      Returns:
      the maximum size of a commit message will be read, anything larger should be truncated
    • getMaxChangesPerCommit

      public int getMaxChangesPerCommit()
      Returns:
      the maximum number of changes to include when building changesets for found commits
    • getRepository

      @Nonnull public Repository getRepository()
      Returns:
      the repository to find the commits in
    • isIgnoreMissing

      public boolean isIgnoreMissing()
      Returns:
      whether this request should ignore missing commits, defaulting to false