Interface GitMergeBuilderSupport<B extends GitMergeBuilderSupport<B>>
- All Superinterfaces:
com.atlassian.bitbucket.scm.CommandBuilderSupport<B>,GitCommandBuilderSupport<B>
- All Known Subinterfaces:
GitMergeBuilder,GitSquashMergeBuilder
public interface GitMergeBuilderSupport<B extends GitMergeBuilderSupport<B>>
extends GitCommandBuilderSupport<B>
A base class for constructing builders around
git merge, supplying properties which are common to all
usages of the command.-
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 TypeMethodDescriptionallowUnrelatedHistories(boolean value) Controls whethergit mergewill allow merging two commits that have no common ancestor.build()Builds acommandwhich will run the configured merge, discarding any output.Specifies the commit to be merged into theHEADrevision of the repository against which the command is executed.errorHandler(com.atlassian.bitbucket.scm.CommandErrorHandler value) ff(GitMergeFastForward value) Sets the fast-forward mode to use when executinggit merge.quiet(boolean value) Sets a flag which controls the output produced bygit merge.verify(GitMergeVerify value) Controls whethergit mergewill try to run hooks likecommit-msgandpre-merge-commit.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, withConfiguration
-
Method Details
-
build
Builds acommandwhich will run the configured merge, discarding any output. If the output contains error messages, they will be ignored.- Returns:
- a
commandto execute the configured merge
-
commit
Specifies the commit to be merged into theHEADrevision of the repository against which the command is executed.- Parameters:
value- the commit to merge, which may be a short or qualified branch or tag name, or a short or full commit hash- Returns:
this
-
errorHandler
Registers the providederror handlerto receivestderroutput when the builtcommandis run.git mergeoutputs the warnings tostderr, notstdout, so in order to parse these warnings callers must register an error handler, not an output handler. Initially added to handle warnings that describe merge conflicts of binary files.- Parameters:
value- the handler to receivestderroutput- Returns:
this
-
ff
Sets the fast-forward mode to use when executinggit merge. The modes available are documented on the enumeration.- Parameters:
value- the fast-forward mode to apply when performing the merge- Returns:
this
-
quiet
Sets a flag which controls the output produced bygit merge.- Parameters:
value-trueto reduce or eliminate output; otherwise,false(the default) to produce normal output- Returns:
this
-
verify
Controls whethergit mergewill try to run hooks likecommit-msgandpre-merge-commit.- Parameters:
value- the verification mode to use- Returns:
this- Since:
- 7.2