Skip to content

Commit ff04071

Browse files
committed
Remove .githooks dir
1 parent 4cb8873 commit ff04071

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.githooks/pre-commit

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,15 @@ please refer to the following resources.
2222

2323
## Formatting
2424

25-
Enable the pre-commit clang-format check, once per clone:
25+
Changed lines must be clang-format clean. CI checks this on every pull
26+
request, and the same check can be run locally:
2627

2728
sudo apt-get install -y clang-format-18
28-
git config core.hooksPath .githooks
29+
.github/scripts/clang-format-check.sh
30+
31+
To run it on every commit, install it as a hook in your own clone:
32+
33+
ln -s ../../.github/scripts/clang-format-check.sh .git/hooks/pre-commit
2934

3035
## Resources
3136

0 commit comments

Comments
 (0)