3 test_description='rewrite diff'
7 test_expect_success setup '
9 cat ../../COPYING >test &&
12 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" \
13 "nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM" \
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>>"