mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 12:20:05 +08:00
10 lines
201 B
Plaintext
10 lines
201 B
Plaintext
|
#!/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
|