6 file "$FILENAME" | grep -q "CRLF line terminators"
9 if git-rev-parse --verify HEAD >/dev/null 2>&1 ; then
12 # Initial commit: diff against an empty tree object
13 against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
16 # Find files with DOS line endings
18 for FILE in $(exec git diff-index --check --cached $against -- | sed '/^[+-]/d' | sed -r 's/:[0-9]+:.*//' | uniq) ; do
22 echo "\"$FILE\" has DOS line endings" >&2