git-find-trailingspace 399 Bytes
Newer Older
1
#!/bin/sh
2
#------------------------------------------------------------------------------
3
# Script
4
#     git-find-trailingspace
5
6
#
# Description
7
#     Use git grep to find files with trailing whitespace
8
#
9
#------------------------------------------------------------------------------
10

11
git grep --count -P '\s+$' -- $@
12

13
#------------------------------------------------------------------------------