diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2022-08-30 12:18:58 +0200 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2022-08-30 13:34:10 +0200 |
commit | 8e2d0e1bb16409ad2e32e6e59432ffafb03c14ee (patch) | |
tree | beaa0377c95366cfa29fa397259e682ebdfd68de /misc/hooks/pre-commit | |
parent | 432b25d3649319517827dbf7bc275e81e0a2b92e (diff) |
Add ability to extend the set of Git pre-commit hooks
Diffstat (limited to 'misc/hooks/pre-commit')
-rwxr-xr-x | misc/hooks/pre-commit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/hooks/pre-commit b/misc/hooks/pre-commit index ab0fc8176f..6359161260 100755 --- a/misc/hooks/pre-commit +++ b/misc/hooks/pre-commit @@ -13,8 +13,8 @@ # pre-commit hooks to be executed. They should be in the same .git/hooks/ folder # as this script. Hooks should return 0 if successful and nonzero to cancel the # commit. They are executed in the order in which they are listed. -#HOOKS="pre-commit-compile pre-commit-uncrustify" HOOKS="pre-commit-clang-format pre-commit-black pre-commit-make-rst" +HOOKS="$HOOKS $(find $(dirname -- "$0") -type f -name 'pre-commit-custom-*' -exec basename {} \;)" ########################################################### # There should be no need to change anything below this line. |