]>
Commit | Line | Data |
---|---|---|
b9905fed JH |
1 | #!/bin/sh |
2 | ||
3 | test_description='ignore CR in CRLF sequence while computing similiarity' | |
4 | ||
5 | . ./test-lib.sh | |
6 | ||
7 | test_expect_success setup ' | |
8 | ||
bfdbee98 | 9 | cat "$TEST_DIRECTORY"/t0022-crlf-rename.sh >sample && |
b9905fed JH |
10 | git add sample && |
11 | ||
12 | test_tick && | |
13 | git commit -m Initial && | |
14 | ||
f4e6dcc3 | 15 | append_cr <"$TEST_DIRECTORY"/t0022-crlf-rename.sh >elpmas && |
b9905fed JH |
16 | git add elpmas && |
17 | rm -f sample && | |
18 | ||
19 | test_tick && | |
20 | git commit -a -m Second | |
21 | ||
22 | ' | |
23 | ||
24 | test_expect_success 'diff -M' ' | |
25 | ||
26 | git diff-tree -M -r --name-status HEAD^ HEAD | | |
27 | sed -e "s/R[0-9]*/RNUM/" >actual && | |
28 | echo "RNUM sample elpmas" >expect && | |
82ebb0b6 | 29 | test_cmp expect actual |
b9905fed JH |
30 | |
31 | ' | |
32 | ||
33 | test_done |