openfoam/bin/tools/git-find-trailingspace

14 lines
400 B
Bash
Executable File

#!/bin/sh
#------------------------------------------------------------------------------
# Script
# git-find-trailingspace
#
# Description
# Use git grep to search for files with trailing whitespace
#
#------------------------------------------------------------------------------
git grep -c -P '\s+$' -- $@
#------------------------------------------------------------------------------