5 lines
114 B
Bash
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
|