convert.c: Use 'git_config_string' to get 'smudge' and 'clean'
[git.git] / t / t4022-diff-rewrite.sh
blobbf996fc414d3b5ea16488a8b274973a8347b29cb
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 \
12 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" \
13 "nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM" \
14 <../../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>>"
23 false
28 test_done