diff options
-rwxr-xr-x | git-hooks/pre-commit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit index 6c6fe4ee662f..4f3809ab9713 100755 --- a/git-hooks/pre-commit +++ b/git-hooks/pre-commit @@ -66,7 +66,7 @@ sub check_and_fix_whitespace($) system( "git diff > $stash" ); system( "git checkout ." ); } - open( FILES, "git diff-index --cached --name-only $head |" ) || die "Cannot run git diff-index."; + open( FILES, "git diff-index --cached --diff-filter=ACM --name-only $head |" ) || die "Cannot run git diff-index."; while( my $file = <FILES> ) { chomp( $file ); if ( $file ne "GNUmakefile" && |