pokeheartgold/.githooks/pre-commit
Adrienn Tindall 4fa58ecd00 Revert "Merge branch 'master' into mic-test"
This reverts commit 5addff602e, reversing
changes made to 28cf07be70.
2024-11-01 19:31:29 -04:00

10 lines
270 B
Bash

#!/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,cpp,h,hpp ; then
echo "linting made changes to source files; aborting commit"
exit 1
fi