#!/bin/sh # Refuse commits whose bug records (.wolf/bugs/*.md) do not meet # .claude/skills/buglog/bug-record.md, or whose .wolf/buglog.json index is stale. # Install: ln -sf ../../scripts/git-hooks/pre-commit .git/hooks/pre-commit if git diff --cached --name-only -- .wolf/bugs/ .wolf/buglog.json | grep -q .; then exec python3 "$(git rev-parse --show-toplevel)/scripts/buglog.py" check --staged fi