diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 793266a..1d0c8d5 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -4,3 +4,6 @@ DIR="$(dirname $(dirname $( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>& cd $DIR make pre-commit +for FILE in `git diff --staged --name-only`; do + git add $FILE +done