#!/bin/sh
cat <<'EOF' > .git/test-clean
#!/bin/sh
echo hi
cat
EOF
cat <<'EOF' > .git/test-smudge
#!/bin/sh
tail -n +2
EOF
chmod +x .git/test-clean
chmod +x .git/test-smudge
git config filter.foo.smudge .git/test-smudge
git config filter.foo.clean .git/test-clean
echo "* filter=foo" > .git/info/attributes
