xenocara/xserver/fix-patch-whitespace

5 lines
114 B
Plaintext
Raw Normal View History

#!/bin/sh
git diff --check |
sed -n 's!^\([^:]*\):\([^:]*\):.*!sed -i "\2 s/[ \t]*$//; \2 s/ *\t/\t/g" \1!p' |
sh