14 lines
399 B
Bash
Executable File
14 lines
399 B
Bash
Executable File
#!/bin/sh
|
|
#------------------------------------------------------------------------------
|
|
# Script
|
|
# git-find-trailingspace
|
|
#
|
|
# Description
|
|
# Use git grep to find files with trailing whitespace
|
|
#
|
|
#------------------------------------------------------------------------------
|
|
|
|
git grep --count -P '\s+$' -- $@
|
|
|
|
#------------------------------------------------------------------------------
|