Last active
April 26, 2026 11:48
-
-
Save MikuroXina/de4d5877145d6b6315c1c1256a048657 to your computer and use it in GitHub Desktop.
Clang-format linter with git 2.54 config-based hook.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [hook "clang-format"] | |
| event = pre-commit | |
| command = "git clang-format --diff --quiet || (echo 'Run `git clang-format` to fix the errors.'; exit 1)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment