1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:20:05 +08:00
SpaceVim/bundle/nvim-cmp/.githooks/pre-commit
2022-01-01 22:13:13 +08:00

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