verify-tag: also grok CR/LFs in the tag signature
[git/mingw/4msysgit/wingit-dll.git] / t / t4121-apply-diffs.sh
blobd93b61d8c4c2c67ce0c8406528a65681ad9b3db4
1 #!/bin/sh
3 test_description='git apply for contextually independent diffs'
4 . ./test-lib.sh
6 test_done
8 echo '1
15 8' >file
17 test_expect_success 'setup' \
18 'git add file &&
19 git commit -q -m 1 &&
20 git checkout -b test &&
21 mv file file.tmp &&
22 echo 0 >file &&
23 cat file.tmp >>file &&
24 rm file.tmp &&
25 git commit -a -q -m 2 &&
26 echo 9 >>file &&
27 git commit -a -q -m 3 &&
28 git checkout master'
30 test_expect_success \
31 'check if contextually independent diffs for the same file apply' \
32 '( git diff test~2 test~1; git diff test~1 test~0 )| git apply'
34 test_done