Interface GitSquashMergeBuilder
- All Superinterfaces:
com.atlassian.bitbucket.scm.CommandBuilderSupport<GitSquashMergeBuilder>,GitCommandBuilderSupport<GitSquashMergeBuilder>,GitMergeBuilderSupport<GitSquashMergeBuilder>
A builder which can be used to construct a
command for running
git merge --squash. This builder only supports the common merge options.- See Also:
-
Field Summary
Fields inherited from interface com.atlassian.bitbucket.scm.git.command.GitCommandBuilderSupport
ENV_AUTHOR_DATE, ENV_AUTHOR_EMAIL, ENV_AUTHOR_NAME, ENV_COMMITTER_DATE, ENV_COMMITTER_EMAIL, ENV_COMMITTER_NAME -
Method Summary
Modifier and TypeMethodDescriptionff(GitMergeFastForward value) Sets the fast-forward mode to use when executinggit merge.Methods inherited from interface com.atlassian.bitbucket.scm.CommandBuilderSupport
clearEnvironment, defaultExitHandler, exitHandler, removeEnvironment, withEnvironmentMethods inherited from interface com.atlassian.bitbucket.scm.git.command.GitCommandBuilderSupport
alternate, alternates, alternates, author, author, author, build, commitish, committer, committer, committer, treeish, withConfiguration, withConfiguration, withConfiguration, withConfigurationMethods inherited from interface com.atlassian.bitbucket.scm.git.command.merge.GitMergeBuilderSupport
allowUnrelatedHistories, build, commit, errorHandler, quiet, verify
-
Method Details
-
ff
Sets the fast-forward mode to use when executinggit merge. The modes available are documented on the enumeration and have different behaviour when applied to--squashmerges:--no-ffand--ffare both ignored--ffis accepted bygit merge --squashbut does not change its behaviour--no-ffcausesgit merge --squashto fail but mimics the behaviour of a squash merge, which always produces a new commit, and so it is ignored by this builder
--ff-onlywhen paired with--squashstill creates a new commit, but will fail if the source branch is not fast-forward from the target rather than actually performing any merging
- Specified by:
ffin interfaceGitMergeBuilderSupport<GitSquashMergeBuilder>- Parameters:
value- the fast-forward mode to apply when performing the merge; only--ff-onlyhas distinct behaviour- Returns:
this
-