Repository navigation
Commit ddd6ae5
committed
docs: list the tag and file hooks in the pre-commit guide
- The hook table gains check-files (CC302-CC304) and check-tag (CC401),
pre-push hooks since 2.16.0 that the README already sends readers here
for.
- check-message and the App run CC001-CC016 since 2.18.0, not CC001-CC013.
- A note says pre-commit runs no hook for a push that creates a ref without
new commits, so a tag pushed on its own after its commit is never checked.
Checked with pre-commit 4.6.2 at rev v2.18.3: check-files rejected a 4 KB
file over max_size = "1KB", check-tag rejected release-2.0 pushed with its
commit, and release-1.0 pushed alone on an already-pushed commit ran no hook.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013rE6bouKaJvsRyKA4tjqCb1 parent 05e9091 commit ddd6ae5
2 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | | - | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| |||
0 commit comments