diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-03-16 11:08:49 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-05-02 14:53:05 +0200 |
commit | 101c895e6a0d1f9a91878043ad2684971efaebdf (patch) | |
tree | 81a01a14f06fd1dcce8c582a170d0be46fc1a261 | |
parent | eaa19eb55ca9cf513e274a5775ea23d993448263 (diff) | |
download | nx-libs-101c895e6a0d1f9a91878043ad2684971efaebdf.tar.gz nx-libs-101c895e6a0d1f9a91878043ad2684971efaebdf.tar.bz2 nx-libs-101c895e6a0d1f9a91878043ad2684971efaebdf.zip |
fix-patch-whitepspace: Copy script from X.Org's xserver Git repo.
-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 |