3 # Copyright (c) 2007 Junio C Hamano
6 test_description
='per path merge controlled by merge attribute'
10 test_expect_success setup
'
12 for f in text binary union
14 echo Initial >$f && git add $f || break
17 git commit -m Initial &&
20 for f in text binary union
22 echo Master >>$f && git add $f || break
25 git commit -m Master &&
28 for f in text binary union
30 echo Side >>$f && git add $f || break
37 test_expect_success merge
'
41 echo "union merge=union"
46 echo Gaah, should have conflicted
53 test_expect_success
'check merge result in index' '
55 git ls-files -u | grep binary &&
56 git ls-files -u | grep text &&
57 ! (git ls-files -u | grep union)
61 test_expect_success
'check merge result in working tree' '
63 git cat-file -p HEAD:binary >binary-orig &&
64 grep "<<<<<<<" text &&
65 cmp binary-orig binary &&
66 ! grep "<<<<<<<" union &&