s0enke/git-hooks — pull request #2 by meckhardt (2012-03-05 14:29:05+00:00)
Title: Allow files to be ignored even if they are added to files to check.

The ignore pattern is applied in the files to check loop, since it was
not possible to ignore a file that was already in the files to check
array.

For instance, I want all *.php files to be checked, except files with
*.ini.append.php extension.

This does not work, but it should:

phpcs -s --standard PEAR ./test.ini.append.php --ignore '\.(ini\.append\.php)$'