public interface CherryPickCommitMessageProvider
The interface is used to construct a cherry-picked commit message based on
the original commit
- Since:
- 6.9
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CherryPickCommitMessageProviderThis provider returns the original commit messagestatic final CherryPickCommitMessageProviderThis provider returns the original commit message with original commit hash in SHA-1 form.
Example: -
Method Summary
-
Field Details
-
ORIGINAL
This provider returns the original commit message -
ORIGINAL_WITH_REFERENCE
This provider returns the original commit message with original commit hash in SHA-1 form.
Example:
This is similar tomy original commit message (cherry picked from commit 75355897dc28e9975afed028c1a6d8c6b97b2a3c)-xflag in git-scm (see https://git-scm.com/docs/git-cherry-pick#_options)
-
-
Method Details
-
getCherryPickedCommitMessage
- Parameters:
srcCommit- original cherry-picked commit- Returns:
- target cherry-picked commit message
-