diff options
Diffstat (limited to 'fix-patch-whitespace')
-rwxr-xr-x | fix-patch-whitespace | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fix-patch-whitespace b/fix-patch-whitespace new file mode 100755 index 000000000..2d06d8ea8 --- /dev/null +++ b/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 |