add output to pre-commit hook

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Changed files
+7 -2
scripts
+7 -2
scripts/pre-commit
··· 1 1 #!/bin/sh 2 2 # auto-update zig dependencies pointing to /archive/main 3 3 4 - # update zat hash if it changed 4 + echo "pre-commit: updating zat dependency..." 5 5 zig fetch --save "https://tangled.org/zzstoatzz.io/zat/archive/main" 2>/dev/null || true 6 6 7 7 # stage the updated build.zig.zon if it changed 8 - git diff --quiet build.zig.zon || git add build.zig.zon 8 + if git diff --quiet build.zig.zon; then 9 + echo "pre-commit: zat hash up to date" 10 + else 11 + git add build.zig.zon 12 + echo "pre-commit: updated zat hash" 13 + fi