ref:main
#!/usr/bin/env bash
# Wire git hooks to the version-controlled .githooks/ directory.
# Run once per clone.
set -euo pipefail
repo_root=$(git -C "$(dirname "$0")" rev-parse --show-toplevel)
cd "$repo_root"
git config core.hooksPath .githooks
echo "core.hooksPath -> .githooks"
echo "Staged .rs files will now be checked with cargo fmt + clippy before commit."