aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-merge-tree.txt
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2022-06-18 00:20:59 +0000
committerJunio C Hamano <gitster@pobox.com>2022-06-22 16:10:06 -0700
commit7976721d171e17330486b403e868b594cd238295 (patch)
treeb0a9b7a2921b96dcd3d34e99918389edc2402d79 /Documentation/git-merge-tree.txt
parent7c48b27822b280222be1df7ec9f9e98d688f933b (diff)
downloadgit-7976721d171e17330486b403e868b594cd238295.tar.gz
merge-tree: add a --allow-unrelated-histories flag
Folks may want to merge histories that have no common ancestry; provide a flag with the same name as used by `git merge` to allow this. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-merge-tree.txt')
-rw-r--r--Documentation/git-merge-tree.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-merge-tree.txt b/Documentation/git-merge-tree.txt
index 75b57f8aba..628324646d 100644
--- a/Documentation/git-merge-tree.txt
+++ b/Documentation/git-merge-tree.txt
@@ -59,6 +59,11 @@ OPTIONS
default is to include these messages if there are merge
conflicts, and to omit them otherwise.
+--allow-unrelated-histories::
+ merge-tree will by default error out if the two branches specified
+ share no common history. This flag can be given to override that
+ check and make the merge proceed anyway.
+
[[OUTPUT]]
OUTPUT
------