-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
An earlier commit e1b3a2c (Build-in merge-recursive) made the subtree merge strategy backend unavailable. This resurrects it. A new test t6029 currently only tests the strategy is available, but it should be enhanced to check the real "subtree" case. Signed-off-by: Junio C Hamano <gitster@pobox.com>
- Loading branch information
Junio C Hamano
committed
Feb 23, 2008
1 parent
b56fca0
commit 1736855
Showing
3 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/sh | ||
|
||
test_description='subtree merge strategy' | ||
|
||
. ./test-lib.sh | ||
|
||
test_expect_success setup ' | ||
s="1 2 3 4 5 6 7 8" | ||
for i in $s; do echo $i; done >hello && | ||
git add hello && | ||
git commit -m initial && | ||
git checkout -b side && | ||
echo >>hello world && | ||
git add hello && | ||
git commit -m second && | ||
git checkout master && | ||
for i in mundo $s; do echo $i; done >hello && | ||
git add hello && | ||
git commit -m master | ||
' | ||
|
||
test_expect_success 'subtree available and works like recursive' ' | ||
git merge -s subtree side && | ||
for i in mundo $s world; do echo $i; done >expect && | ||
diff -u expect hello | ||
' | ||
|
||
test_done |