10 lines
201 B
Bash
Executable File
10 lines
201 B
Bash
Executable File
#!/bin/sh
|
|
|
|
DIR="$(dirname $(dirname $( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )))"
|
|
|
|
cd $DIR
|
|
make pre-commit
|
|
for FILE in `git diff --staged --name-only`; do
|
|
git add $FILE
|
|
done
|