3 test_description='rewrite diff'
7 test_expect_success setup '
9 cat "$TEST_DIRECTORY"/../COPYING >test &&
12 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" \
13 "nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM" \
14 <"$TEST_DIRECTORY"/../COPYING >test
18 test_expect_success 'detect rewrite' '
20 actual=$(git diff-files -B --summary test) &&
21 expr "$actual" : " rewrite test ([0-9]*%)$" || {
22 echo "Eh? <<$actual>>"