#!/usr/bin/env bash
# Activate the tracked git hooks in hooks/ for this clone. Idempotent.
set -euo pipefail
cd "$(git rev-parse --show-toplevel)"
git config core.hooksPath hooks
chmod +x hooks/pre-commit scripts/check-docs.sh 2>/dev/null || true
echo "✓ core.hooksPath = hooks (pre-commit active: cargo gates + doc-guard + site eslint)"
