path: root/
diff options
authorFredrik Kuivinen <>2005-10-03 06:13:09 (GMT)
committerJunio C Hamano <>2005-10-03 07:25:42 (GMT)
commit88f8f0a52b2962452d89e854ad751283595473e4 (patch)
tree1167cf32d0708a77bed51a0bcc08334f282ab756 /
parent99a19b43021024e12ddb67831f8e5919f86a5979 (diff)
[PATCH] Enable and fix support for base less merges.
Let the merge strategies handle the base less case if they are able to do it. It also fixes to die if no common ancestors exists, instead of doing the wrong thing. Furthermore, it contains a small independent fix for and a fix for a base less code path in With this it's possible to use git merge -s recursive 'merge message' A B to do a base less merge of A and B. [jc: Thanks Fredrik for fixing the brown-paper-bag in git-merge. I fixed a small typo in git-merge-resolve fix; 'test' equality check is spelled with single equal sign -- C-style double equal sign is bashism.] Signed-off-by: Fredrik Kuivinen <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to '')
1 files changed, 6 insertions, 0 deletions
diff --git a/ b/
index e3b04a0..966e81f 100755
--- a/
+++ b/
@@ -31,6 +31,12 @@ case "$remotes" in
exit 2 ;;
+# Give up if this is a baseless merge.
+if test '' = "$bases"
+ exit 2
git-update-index --refresh 2>/dev/null
git-read-tree -u -m $bases $head $remotes || exit 2
echo "Trying simple merge."