Package com.atlassian.bitbucket.commit
Class AbstractCommitRequest
java.lang.Object
com.atlassian.bitbucket.commit.AbstractCommitRequest
- Direct Known Subclasses:
CommitRequest
,LastModifiedRequest
- Since:
- 4.6
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AbstractCommitRequest.AbstractCommitRequestBuilder<B extends AbstractCommitRequest.AbstractCommitRequestBuilder<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
getPath()
Retrieves an optional path which is used to control which commit is returned.
-
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
-
AbstractCommitRequest
-
-
Method Details
-
getCommitId
-
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
-
getPath
Retrieves an optional path which is used to control which commit is returned. When a path is provided, thecommit ID
is used as a starting point and may not actually be the commit that ultimately gets returned. Instead, the first commit which modifies the specified path will be returned. If none of the commits in the ancestry of the starting commit modify the specified path, no commit is returned.- Returns:
- an optional path
-
getRepository
- Returns:
- the repository the commit should be loaded from
-