aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-03-31 12:19:56 +0200
committerDanilo M. <danix@danix.xyz>2026-03-31 12:19:56 +0200
commit59d70bd5f0418205f97426dd6d400adc68e91082 (patch)
tree8a3268615cdc0630f8999c769dd576b2f0640799 /README.md
parentd3b865ccf522114746b51ac483cd5c856512310a (diff)
downloadmy-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.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index 35057b1..ffdef5b 100644
--- a/README.md
+++ b/README.md
@@ -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).