add pre-commit hook to auto-update zat hash

run `just setup` after cloning to install the hook.

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

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

Changed files
+12
scripts
+4
justfile
··· 1 1 default: 2 2 @just --list 3 3 4 + setup: 5 + cp scripts/pre-commit .git/hooks/pre-commit 6 + chmod +x .git/hooks/pre-commit 7 + 4 8 build: 5 9 zig build 6 10
+8
scripts/pre-commit
··· 1 + #!/bin/sh 2 + # auto-update zig dependencies pointing to /archive/main 3 + 4 + # update zat hash if it changed 5 + zig fetch --save "https://tangled.org/zzstoatzz.io/zat/archive/main" 2>/dev/null || true 6 + 7 + # stage the updated build.zig.zon if it changed 8 + git diff --quiet build.zig.zon || git add build.zig.zon