We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b5bac8 commit a66ed93Copy full SHA for a66ed93
pre-commit
@@ -1,7 +1,7 @@
1
#!/bin/sh
2
3
# Get list of staged files excluding deleted files (lowercase d in --diff-filter).
4
-FILES=$(git diff --cached --name-only --diff-filter=d)
+FILES=$(git diff --cached --name-only --diff-filter=d | grep \\.php)
5
if [[ $(echo $FILES | wc -c) -eq "1" ]]
6
then
7
# No files staged, let git handle the rest.
0 commit comments