1#!/bin/sh
23
test_description='rewrite diff'
45
. ./test-lib.sh
67
test_expect_success setup '
89
cat ../../COPYING >test &&
10git add test &&
11tr 'a-zA-Z' 'n-za-mN-ZA-M' <../../COPYING >test
1213
'
1415
test_expect_success 'detect rewrite' '
1617
actual=$(git diff-files -B --summary test) &&
18expr "$actual" : " rewrite test ([0-9]*%)$" || {
19echo "Eh? <<$actual>>"
20false
21}
2223
'
2425
test_done
26