Package com.atlassian.bitbucket.scm
Class LastModifiedCommandParameters
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.scm.AbstractCommandParameters
com.atlassian.bitbucket.scm.AbstractCommitCommandParameters
com.atlassian.bitbucket.scm.LastModifiedCommandParameters
Describes a
starting commit
to traverse from, searching for the last commit to modify
files in the requested path
.
The starting commit
is used to:
- List the files in the
requested path
- Provide the anchor for traversing history to search for modifications to the listed files
If the requested path
is null
, ""
or "/"
, it will be treated as
a reference to the repository's root directory.
- Since:
- 4.6
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bitbucket.scm.AbstractCommitCommandParameters
AbstractCommitCommandParameters.AbstractCommitParametersBuilder<B extends AbstractCommitCommandParameters.AbstractCommitParametersBuilder<B>>
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Method Summary
Methods inherited from class com.atlassian.bitbucket.scm.AbstractCommitCommandParameters
getCommitId, getPath, hasPath
Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Method Details
-
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
-
toContext
Assembles aLastModifiedContext
from these parameters.- Returns:
- a
LastModifiedContext
describing these parameters
-