3 test_description='blob conversion via gitattributes'
8 tr '[a-zA-Z]' '[n-za-mN-ZA-M]'
12 test_expect_success setup '
13 git config filter.rot13.smudge ./rot13.sh &&
14 git config filter.rot13.clean ./rot13.sh &&
17 echo "*.t filter=rot13"
22 echo a b c d e f g h i j k l m
23 echo n o p q r s t u v w x y z
29 git add test test.t test.i &&
30 rm -f test test.t test.i &&
31 git checkout -- test test.t test.i
34 script='s/^\$Id: \([0-9a-f]*\) \$/\1/p'
36 test_expect_success check '
41 # ident should be stripped in the repository
42 git diff --raw --exit-code :test :test.i &&
43 id=$(git rev-parse --verify :test) &&
44 embedded=$(sed -ne "$script" test.i) &&
45 test "z$id" = "z$embedded"