mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:20:05 +08:00
10 lines
201 B
Bash
Vendored
10 lines
201 B
Bash
Vendored
#!/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
|