summaryrefslogtreecommitdiff
path: root/t/t6029-merge-subtree.sh
blob: 3900a0508203649901a414843feb4e73dd1b2133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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