Interface GitMerge
public interface GitMerge
-
Method Summary
Modifier and TypeMethodDescriptionnormal()
Creates a builder which can be used to create acommand
for runninggit merge
.squash()
Creates a builder which can be used to create acommand
for runninggit merge --squash
, which will not produce a merge commit and, instead, will merge incoming changes into the work tree and then exit.
-
Method Details
-
normal
Creates a builder which can be used to create acommand
for runninggit merge
. Whether or not a merge commit is created will depend on the configuration of the created command, and on the commits being merged.- Returns:
- a new builder for creating a merge command
-
squash
Creates a builder which can be used to create acommand
for runninggit merge --squash
, which will not produce a merge commit and, instead, will merge incoming changes into the work tree and then exit.When using
git merge --squash
, thecommit
must be performed explicitly. Prior to committing the changes, arbitrary additional work can be done, as well as directly controlling the commit details.- Returns:
- a new builder for creating a squashing merge command
-