Package org.jenkinsci.plugins.gitclient
Interface MergeCommand
-
- All Superinterfaces:
GitCommand
public interface MergeCommand extends GitCommand
MergeCommand interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMergeCommand.GitPluginFastForwardModestatic classMergeCommand.Strategy
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MergeCommandsetCommit(boolean commit)setCommitMergeCommandsetGitPluginFastForwardMode(MergeCommand.GitPluginFastForwardMode fastForwardMode)Select the fast forward mode.MergeCommandsetMessage(String message)setMessage.MergeCommandsetRevisionToMerge(org.eclipse.jgit.lib.ObjectId rev)Sets the revision to include in the merge.MergeCommandsetSquash(boolean squash)setSquashMergeCommandsetStrategy(MergeCommand.Strategy strategy)setStrategy.-
Methods inherited from interface org.jenkinsci.plugins.gitclient.GitCommand
execute
-
-
-
-
Method Detail
-
setRevisionToMerge
MergeCommand setRevisionToMerge(org.eclipse.jgit.lib.ObjectId rev)
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
MergeCommand setMessage(String message)
setMessage.- Parameters:
message- the desired comment for the merge command.- Returns:
- MergeCommand to be used in fluent calls
-
setStrategy
MergeCommand setStrategy(MergeCommand.Strategy strategy)
setStrategy.- Parameters:
strategy- aMergeCommand.Strategyobject.- Returns:
- MergeCommand to be used in fluent calls
-
setGitPluginFastForwardMode
MergeCommand setGitPluginFastForwardMode(MergeCommand.GitPluginFastForwardMode fastForwardMode)
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
MergeCommand setSquash(boolean squash)
setSquash- Parameters:
squash- - whether to squash commits or not- Returns:
- MergeCommand to be used in fluent calls
-
setCommit
MergeCommand setCommit(boolean commit)
setCommit- Parameters:
commit- - whether or not to commit the result after a successful merge.- Returns:
- MergeCommand to be used in fluent calls
-
-