aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/fix-patch-whitespace
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/fix-patch-whitespace')
-rw-r--r--xorg-server/fix-patch-whitespace4
1 files changed, 4 insertions, 0 deletions
diff --git a/xorg-server/fix-patch-whitespace b/xorg-server/fix-patch-whitespace
new file mode 100644
index 000000000..417f66fc6
--- /dev/null
+++ b/xorg-server/fix-patch-whitespace
@@ -0,0 +1,4 @@
+#!/bin/sh
+git diff --check |
+sed -n 's!^\([^:]*\):\([^:]*\):.*!sed -i "\2 s/[ \t]*$//; \2 s/ *\t/\t/g" \1!p' |
+sh