Commit 3381528
Simplify: keep hook regex, drop redundant deny rule permutations
The rewritten hook regex already handles all case/ordering variants of
rm flags via case-insensitive chained grep checks. Remove the 16
enumerated permutations from deny rules. Drop overly broad * | sh and
* | zsh rules that would block legitimate pipes. Revert unnecessary
case-insensitive flag on git push hook (git is always lowercase).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 58b6f73 commit 3381528
1 file changed
Lines changed: 1 addition & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 16 | | |
34 | 17 | | |
35 | 18 | | |
36 | 19 | | |
37 | 20 | | |
38 | 21 | | |
39 | 22 | | |
40 | | - | |
41 | | - | |
42 | 23 | | |
43 | 24 | | |
44 | 25 | | |
| |||
79 | 60 | | |
80 | 61 | | |
81 | 62 | | |
82 | | - | |
| 63 | + | |
83 | 64 | | |
84 | 65 | | |
85 | 66 | | |
| |||
0 commit comments