Package com.atlassian.bitbucket.commit
Class AbstractCommitsRequest
java.lang.Object
com.atlassian.bitbucket.commit.AbstractCommitsRequest
- Direct Known Subclasses:
CommitsBetweenRequest
,CommitsRequest
A base class for requests to retrieve a series of commits.
- Since:
- 4.6
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AbstractCommitsRequest.AbstractCommitsRequestBuilder<B extends AbstractCommitsRequest.AbstractCommitsRequestBuilder<B>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
A symbolic constant formax message length
which means the full commit message should be read regardless of length. -
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the strategy being used to filter merge commits.getOrder()
Retrieves the sort order to use for the commits.getPaths()
Retrieves paths, which may identify directories or files within the repository, which are used to limit returned commits.Retrieves the keys ofindex
properties to load for returned commits.boolean
Whether or not the commit history will attempt to follow renames.boolean
-
Field Details
-
UNLIMITED_MESSAGE_LENGTH
public static final int UNLIMITED_MESSAGE_LENGTHA symbolic constant formax message length
which means the full commit message should be read regardless of length.- See Also:
-
-
Constructor Details
-
AbstractCommitsRequest
-
-
Method Details
-
getMaxMessageLength
public int getMaxMessageLength()- Returns:
- the max message length to be processed for any of the commits, which may be
UNLIMITED_MESSAGE_LENGTH
to include the full commit message regardless of length
-
getMerges
Retrieves the strategy being used to filter merge commits.- Returns:
- how merge commits will be filtered
- Since:
- 4.8
- See Also:
-
getOrder
Retrieves the sort order to use for the commits.- Returns:
- the sort order
- Since:
- 5.0
-
getPaths
Retrieves paths, which may identify directories or files within the repository, which are used to limit returned commits. When multiple paths are provided, commits which modify any of the specified paths may be returned.- Returns:
- a set containing zero or more paths
-
getPropertyKeys
Retrieves the keys ofindex
properties to load for returned commits.- Returns:
- a set containing zero or more commit attributes to load
- See Also:
-
getRepository
- Returns:
- the repository the commits should be loaded from
-
isFollowingRenames
public boolean isFollowingRenames()Whether or not the commit history will attempt to follow renames. This is only applicable for individual filepaths
- Returns:
true
if renames are followed,false
otherwise
-
isIgnoringMissing
public boolean isIgnoringMissing()- Returns:
- whether or not to ignore missing commits, or
null
to let the application figure out whether to do so. - Since:
- 5.0
-