Skip to content

Commit 787ff6f

Browse files
committed
Merge branch 'en/doc-merge-tree-describe-merge-base' into next
Clarify the "--merge-base" command line option in "git merge-tree". * en/doc-merge-tree-describe-merge-base: Documentation/git-merge-tree.adoc: clarify the --merge-base option
2 parents f639955 + 1c573a3 commit 787ff6f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Documentation/git-merge-tree.adoc

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,17 @@ OPTIONS
7979
8080
--merge-base=<tree-ish>::
8181
Instead of finding the merge-bases for <branch1> and <branch2>,
82-
specify a merge-base for the merge, and specifying multiple bases is
83-
currently not supported. This option is incompatible with `--stdin`.
82+
specify a merge-base for the merge. This option is incompatible with
83+
`--stdin`.
8484
+
85-
As the merge-base is provided directly, <branch1> and <branch2> do not need
86-
to specify commits; trees are enough.
85+
Specifying multiple bases is currently not supported, which means that when
86+
merging two branches with more than one merge-base, using this option may
87+
cause merge results to differ from what `git merge` would compute. This
88+
can include potentially losing some changes made on one side of the history
89+
in the resulting merge.
90+
+
91+
With this option, since the merge-base is provided directly, <branch1> and
92+
<branch2> do not need to specify commits; trees are enough.
8793
8894
-X<option>::
8995
--strategy-option=<option>::

0 commit comments

Comments
 (0)