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 class
MergeCommand.GitPluginFastForwardMode
static class
MergeCommand.Strategy
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MergeCommand
setCommit(boolean commit)
setCommitMergeCommand
setGitPluginFastForwardMode(MergeCommand.GitPluginFastForwardMode fastForwardMode)
Select the fast forward mode.MergeCommand
setMessage(String message)
setMessage.MergeCommand
setRevisionToMerge(org.eclipse.jgit.lib.ObjectId rev)
Sets the revision to include in the merge.MergeCommand
setSquash(boolean squash)
setSquashMergeCommand
setStrategy(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.Strategy
object.- 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
-
-