3 test_description
='git apply handling criss-cross rename patch.'
8 while test $cnt -le 100
15 test_expect_success
'setup' '
16 create_file file1 "File1 contents" &&
17 create_file file2 "File2 contents" &&
18 create_file file3 "File3 contents" &&
19 git add file1 file2 file3 &&
23 test_expect_success
'criss-cross rename' '
27 cp file1 file1-swapped &&
28 cp file2 file2-swapped
31 test_expect_success
'diff -M -B' '
32 git diff -M -B > diff &&
37 test_expect_success
'apply' '
39 test_cmp file1 file1-swapped &&
40 test_cmp file2 file2-swapped
43 test_expect_success
'criss-cross rename' '
49 cp file1 file1-swapped &&
50 cp file2 file2-swapped &&
51 cp file3 file3-swapped
54 test_expect_success
'diff -M -B' '
55 git diff -M -B > diff &&
59 test_expect_success
'apply' '
61 test_cmp file1 file1-swapped &&
62 test_cmp file2 file2-swapped &&
63 test_cmp file3 file3-swapped