summaryrefslogtreecommitdiff
path: root/xserver/fix-patch-whitespace
blob: 2d06d8ea81e2aaed5695810f48f428dba8cdfb02 (plain)
1
2
3
4
#!/bin/sh
git diff --check |
sed -n 's!^\([^:]*\):\([^:]*\):.*!sed -i "\2 s/[ \t]*$//; \2 s/ *\t/\t/g" \1!p' |
sh