add--interactive: remove unused diff colors
[git/peff.git] / t / t4022-diff-rewrite.sh
blob6de4acbd44589fbcf6a3f9c4ca2043c9f4e99ebe
1 #!/bin/sh
3 test_description='rewrite diff'
5 . ./test-lib.sh
7 test_expect_success setup '
9 cat ../../COPYING >test &&
10 git add 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>>"
20 false
25 test_done