Skip to content
Snippets Groups Projects
Verified Commit 7cc9ac80 authored by Jérôme Charaoui's avatar Jérôme Charaoui :telescope:
Browse files

service/documentation: add pre-commit hook bit

parent 7d434835
No related branches found
No related tags found
No related merge requests found
......@@ -156,6 +156,12 @@ could start an "exclude file" (`exclude-file = PATH` in the
Some file patterns are skipped in the `.codespellrc` (currently
`*.json`, `*.csv`, and the entire `.git` directory).
You can also add this to a `.git/hooks/pre-commit` shell script:
codespell $(git diff --cached --name-only --diff-filter=ACM)
This will warn you before creating commits that fail the codespell check.
## Accepting merge requests on wikis
It's possible to work around the [limitation of Wiki permissions](https://gitlab.torproject.org/tpo/tpa/gitlab/-/issues/76)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment