Git pre-commit hook
- Remove whitespaces
- Find files containing FOCUS()
Copy this file in .git/hooks and make it executable
- chmod +x .git/hooks/pre-commit
#!/bin/sh | |
ORIGINALDIR="$( pwd )" | |
SCRIPTDIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
BASEDIR="$( cd -P $SCRIPTDIR/.. && pwd )" | |
COLORON='printf "`tput setaf 7`"' | |
COLORON2='printf "`tput setaf 5`"' | |
COLORONRED='printf "`tput setaf 1`"' | |
COLOROFF='printf "`tput sgr0`"' |
Git pre-commit hook
Copy this file in .git/hooks and make it executable