Commit 20c7802
committed
refactor: Refactor git hooks and templates organization
- Add a new file `git/hook.go` with a `embed.FS` variable and a `util.LoadTemplates` call in the `init` function.
- Rename `hook/templates/prepare-commit-msg` to `git/templates/prepare-commit-msg` with a 100% similarity index.
- Delete the file `hook/hook.go` and remove the `hook` package.1 parent e510f27 commit 20c7802
3 files changed
+21
-62
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
File renamed without changes.
This file was deleted.
0 commit comments