Interface MergeCommand

All Superinterfaces:
GitCommand

public interface MergeCommand extends GitCommand
MergeCommand interface.
  • Method Details

    • 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 - a MergeCommand.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