-
Notifications
You must be signed in to change notification settings - Fork 30
/
README
21 lines (16 loc) · 791 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
This repository contains some useful pre-commit hooks to use with git.
Check INSTALL for documentation on how to install and use these hooks.
canonicalize_filename.sh
Provides the ability to canonicalize filenames similar to the GNU version of
readlink -f with non GNU versions of readlink. Required for example for the
hooks to run on Mac OS.
install_hooks.sh:
Copy hooks over to your local git repository.
pre-commit:
Allow to run multiple pre-commit hooks as specified in the script.
pre-commit-compile:
Compile the project and abort commit if it fails.
pre-commit-uncrustify:
Run uncrustify on your sourcefiles and abort the commit if style violations
have been detected. Generate a patch to fix these violations and print the
command to apply it.