Add --diff-filter=ACMR to only get added, copied, modified, or renamed
files (importantly, not deleted files!) in the list of files we run the
indent script on.
--indent-level2"
echo "--Checking style--"
-for file in `git-diff-index --cached --name-only HEAD | grep "\.c$"` ; do
+for file in `git-diff-index --cached --name-only HEAD --diff-filter=ACMR| grep "\.c$"` ; do
# nf is the temporary checkout. This makes sure we check against the
# revision in the index (and not the checked out version).
nf=`git checkout-index --temp ${file} | cut -f 1`