Package org.jenkinsci.plugins.gitclient
Interface MergeCommand
- All Superinterfaces:
GitCommand
MergeCommand interface.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionsetCommit(boolean commit) setCommitsetGitPluginFastForwardMode(MergeCommand.GitPluginFastForwardMode fastForwardMode) Select the fast forward mode.setMessage(String message) setMessage.setRevisionToMerge(org.eclipse.jgit.lib.ObjectId rev) Sets the revision to include in the merge.setSquash(boolean squash) setSquashsetStrategy(MergeCommand.Strategy strategy) setStrategy.Methods inherited from interface org.jenkinsci.plugins.gitclient.GitCommand
execute
-
Method Details
-
setRevisionToMerge
Sets the revision to include in the merge.- Parameters:
rev- revision to include in the merge- Returns:
- MergeCommand to be used in fluent calls
-
setMessage
setMessage.- Parameters:
message- the desired comment for the merge command.- Returns:
- MergeCommand to be used in fluent calls
-
setStrategy
setStrategy.- Parameters:
strategy- aMergeCommand.Strategyobject.- Returns:
- MergeCommand to be used in fluent calls
-
setGitPluginFastForwardMode
Select the fast forward mode. The name FastForwardMode collides with org.eclipse.jgit.api.MergeCommand.FastForwardMode so we have to choose a different name.- Parameters:
fastForwardMode- mode to be used in this merge- Returns:
- MergeCommand to be used in fluent calls
-
setSquash
setSquash- Parameters:
squash- - whether to squash commits or not- Returns:
- MergeCommand to be used in fluent calls
-
setCommit
setCommit- Parameters:
commit- - whether or not to commit the result after a successful merge.- Returns:
- MergeCommand to be used in fluent calls
-