aboutsummaryrefslogtreecommitdiff
path: root/gdb/contrib/pre-commit-setup.py
AgeCommit message (Collapse)AuthorFilesLines
2026-01-05Update copyright dates to include 2026Tom Tromey1-1/+1
This updates the copyright headers to include 2026. I did this by running gdb/copyright.py and then manually modifying a few files as noted by the script.
2025-12-11[pre-commit] Add pre-commit setup checkTom de Vries1-0/+62
I wrote a patch and accidentally introduced a typo in the commit message. This didn't get detected because codespell-log didn't run. I installed pre-commit on that setup a while back, before codespell-log was around and consequently only the .git/hooks/pre-commit script was installed. This is a bit hard to notice given that all other hooks do run. Add a pre-commit check that checks for this situation: ... $ rm .git/hooks/commit-msg $ git commit --amend ... pre-commit-setup........................................................Failed - hook id: pre-commit-setup - exit code: 1 missing hook: .git/hooks/commit-msg (please run pre-commit install) ... $ ... This is a bit niche, but worthwhile if you're using a dozen build and test installations.