Package com.atlassian.bitbucket.scm
Class CommitsCommandParameters
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.scm.AbstractCommandParameters
com.atlassian.bitbucket.scm.CommitsCommandParameters
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
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()
getSince()
Show commits more recent than a specific date.boolean
boolean
boolean
hasPaths()
boolean
boolean
hasSince()
boolean
isAll()
boolean
Whether or not the commit history will attempt to follow renames.boolean
boolean
boolean
Assembles aCommitContext
from these parameters.Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Method Details
-
getExcludes
-
getIncludes
-
getMaxMessageLength
public int getMaxMessageLength()- Returns:
- the maximum length to read for
commit messages
; if set, messages longer than this will be truncated; -1 indicates unlimited message length - Since:
- 4.5
-
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
-
getSecondaryRepository
-
getSince
Show commits more recent than a specific date.- Returns:
- the
Instant
which the commits should be more recent than ornull
if no filter is set - Since:
- 7.12
-
hasExcludes
public boolean hasExcludes() -
hasIncludes
public boolean hasIncludes() -
hasPaths
public boolean hasPaths() -
hasSecondaryRepository
public boolean hasSecondaryRepository() -
hasSince
public boolean hasSince()- Returns:
true
if a since date is specified,false
otherwise- Since:
- 7.12
-
isAll
public boolean isAll() -
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- Since:
- 4.5
-
isIgnoringMissing
public boolean isIgnoringMissing()- Returns:
- whether or not to ignore missing commits.
- Since:
- 5.0
-
isTraversing
public boolean isTraversing() -
isWithMessages
public boolean isWithMessages()- Returns:
true
if commit messages should be included; otherwise,false
if they should be omitted
-
toContext
Assembles aCommitContext
from these parameters.- Returns:
- a
CommitContext
describing these parameters
-