diff options
| author | Danilo M. <danix@danix.xyz> | 2026-06-25 17:44:05 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-06-25 17:44:05 +0200 |
| commit | 1fb8e2b10f2957910080f8c5276f4df3a86c2399 (patch) | |
| tree | 76264a231b21a711e841cfdcc5e5c1c174dd4661 /CLAUDE.md | |
| parent | 9cdf4d454ce6b98e170bae71cf3cf50c4f881833 (diff) | |
| download | slackware-pentesting-suite-1fb8e2b10f2957910080f8c5276f4df3a86c2399.tar.gz slackware-pentesting-suite-1fb8e2b10f2957910080f8c5276f4df3a86c2399.zip | |
docs: document git hooks and SBO_ARCHIVE usage
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -186,6 +186,35 @@ git commit -m'<package-name>: add version X.Y.Z' --- +## Git Hooks + +Versioned source lives in `.extras/hooks/`. They are NOT auto-installed +(git ignores `.git/hooks/` only if `core.hooksPath` is unset; the user's +global `core.hooksPath` dispatches to `.git/hooks/<name>` when executable). +After a fresh clone, install them: + +```bash +cp .extras/hooks/* .git/hooks/ && chmod 0755 .git/hooks/{pre,post}-commit +``` + +- `pre-commit` — runs `sbolint` on each changed package; aborts the commit on + any error. Also auto-removes staged source-archive symlinks and blocks + staged regular source archives (`*.tar.*`, `*.zip`, `*.deb`, etc.). Skip + with `SBOLINT=no git commit ...`. +- `post-commit` — for each added/updated `*.SlackBuild`, offers to build the + SBo submission tarball into `SBo/<package>.tar.gz`. + +### `SBO_ARCHIVE` (non-interactive archive answer) + +`post-commit` normally prompts on a TTY. To answer without one (agents, +scripts), set `SBO_ARCHIVE`: + +- `SBO_ARCHIVE=yes git commit ...` — build the tarball, no prompt +- `SBO_ARCHIVE=no git commit ...` — skip, no prompt +- unset + TTY → interactive prompt; unset + no TTY → skip + +--- + ## Commit Conventions - One commit per package add/update |
