Squashed 'external/toxcore/c-toxcore/' content from commit 67badf69
git-subtree-dir: external/toxcore/c-toxcore git-subtree-split: 67badf69416a74e74f6d7eb51dd96f37282b8455
This commit is contained in:
17
other/astyle/pre-commit
Normal file
17
other/astyle/pre-commit
Normal file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env sh
|
||||
#
|
||||
# An example hook script to verify what is about to be committed.
|
||||
# Called by "git commit" with no arguments. The hook should
|
||||
# exit with non-zero status after issuing an appropriate message if
|
||||
# it wants to stop the commit.
|
||||
#
|
||||
# To enable this hook, rename this file to "pre-commit".
|
||||
|
||||
for file in `git diff-index --diff-filter=ACMR --name-only HEAD`; do
|
||||
if [[ $file == *.c || $file == *.h ]]
|
||||
then
|
||||
echo $file
|
||||
`which astyle` $file --options=tools/astylerc
|
||||
git add $file
|
||||
fi
|
||||
done
|
Reference in New Issue
Block a user