xenocara/xserver/fix-patch-whitespace
2011-11-05 13:32:40 +00:00

5 lines
114 B
Bash

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