3 test_description='rewrite diff'
7 test_expect_success setup '
9 cat ../../COPYING >test &&
11 tr 'a-zA-Z' 'n-za-mN-ZA-M' <../../COPYING >test
15 test_expect_success 'detect rewrite' '
17 actual=$(git diff-files -B --summary test) &&
18 expr "$actual" : " rewrite test ([0-9]*%)$" || {
19 echo "Eh? <<$actual>>"