public interface GitSquashMergeBuilder extends GitMergeBuilderSupport<GitSquashMergeBuilder>
command
for running
git merge --squash
. This builder only supports the common merge options
.GitMergeBuilder
ENV_AUTHOR_DATE, ENV_AUTHOR_EMAIL, ENV_AUTHOR_NAME, ENV_COMMITTER_DATE, ENV_COMMITTER_EMAIL, ENV_COMMITTER_NAME
Modifier and Type | Method and Description |
---|---|
GitSquashMergeBuilder |
ff(GitMergeFastForward value)
Sets the fast-forward mode to use when executing
git merge . |
build, commit, errorHandler, quiet
alternate, alternates, alternates, author, author, author, build, committer, committer, committer, withConfiguration, withConfiguration, withConfiguration, withConfiguration
@Nonnull GitSquashMergeBuilder ff(GitMergeFastForward value)
git merge
. The modes available are documented on the
enumeration and have different behaviour when applied to --squash
merges:
--no-ff
and --ff
are both ignored
--ff
is accepted by git merge --squash
but does not change its behaviour--no-ff
causes git merge --squash
to fail but mimics the behaviour of a squash
merge, which always produces a new commit, and so it is ignored by this builder--ff-only
when paired with --squash
still creates a new
commit, but will fail if the source branch is not fast-forward from the target rather than actually
performing any mergingff
in interface GitMergeBuilderSupport<GitSquashMergeBuilder>
value
- the fast-forward mode to apply when performing the merge; only --ff-only
has distinct behaviourthis
Copyright © 2019 Atlassian. All rights reserved.