Commit d801e79
committed
refactor: extract prepare-commit-msg hook to separate script file
- Move commitment hook logic from inline lefthook.yml to dedicated .lefthook/prepare-commit-msg/commitment.sh
- Preserve hook behavior: only run for regular commits (check if $2 is empty)
- Simplify lefthook.yml configuration using scripts runner instead of inline command
🤖 Generated with Claude via commitment1 parent 82bfb47 commit d801e79
2 files changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments