This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PHP Architecture Tester pre-commit hook for git | |
# | |
# @author Carlos Alandete <[email protected]> | |
# | |
STAGED_FILES_PHP=$(git diff --cached --name-only --diff-filter=ACM | grep '^src.*\.php\?$') | |
if [[ "$STAGED_FILES_PHP" == "" ]]; then | |
printf "\033[1;32mNo files that could affect PHP Architecture Tester\033[0m\n\n" | |
exit 0 | |
fi |