diff options
| author | Danilo M. <danix@danix.xyz> | 2026-03-31 12:19:56 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-03-31 12:19:56 +0200 |
| commit | 59d70bd5f0418205f97426dd6d400adc68e91082 (patch) | |
| tree | 8a3268615cdc0630f8999c769dd576b2f0640799 /README.md | |
| parent | d3b865ccf522114746b51ac483cd5c856512310a (diff) | |
| download | my-slackbuilds-59d70bd5f0418205f97426dd6d400adc68e91082.tar.gz my-slackbuilds-59d70bd5f0418205f97426dd6d400adc68e91082.zip | |
hooks: add pre-commit and post-commit hooks to version control
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -57,6 +57,23 @@ Check each package's `README` for dependencies and any special build instruction --- +## Git Hooks + +Two hooks are included in `hooks/`. Install them after cloning: + +```bash +cp hooks/pre-commit .git/hooks/pre-commit +cp hooks/post-commit .git/hooks/post-commit +chmod +x .git/hooks/pre-commit .git/hooks/post-commit +``` + +| Hook | Purpose | +|------|---------| +| `pre-commit` | Runs [`sbolint`](https://slackware.uk/~urchlay/repos/sbo-maintainer-tools) on staged packages before each commit | +| `post-commit` | After each commit, offers to create a `SBo/<pkg>.tar.gz` archive ready for submission to SlackBuilds.org | + +--- + ## License GPL-2.0 — see [LICENSE](LICENSE). |
