mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-07-20 09:22:20 -05:00
10 lines
261 B
Bash
Executable File
10 lines
261 B
Bash
Executable File
#!/bin/sh
|
|
# Redirect output to stderr.
|
|
exec 1>&2
|
|
|
|
# Run clang-format on staged files; abort the commit if any files are changed
|
|
if ! git clang-format --extensions c,h,cpp,hpp ; then
|
|
echo "linting made changes to source files; aborting commit"
|
|
exit 1
|
|
fi
|