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
Nested Classes -
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK -
Method Summary
Modifier and TypeMethodDescriptionintRetrieves 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.booleanbooleanbooleanhasPaths()booleanbooleanhasSince()booleanisAll()booleanWhether or not the commit history will attempt to follow renames.booleanbooleanbooleanAssembles aCommitContextfrom 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
Instantwhich the commits should be more recent than ornullif 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:
trueif a since date is specified,falseotherwise- 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:
trueif renames are followed,falseotherwise- 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:
trueif commit messages should be included; otherwise,falseif they should be omitted
-
toContext
Assembles aCommitContextfrom these parameters.- Returns:
- a
CommitContextdescribing these parameters
-