The pql plan auto-export (pre-commit) and auto-import (post-merge) hooks were previously gitignored as part of `.pql/*`. Allowing the hooks directory to be committed means a fresh clone gets the planning-state sync without needing to run `pql init` first — pql plan snapshots stay current on push and absorb changes on pull the same way for every contributor. Co-Authored-By: Claude <noreply@anthropic.com>
12 lines
363 B
Bash
Executable File
12 lines
363 B
Bash
Executable File
#!/bin/sh
|
|
# --- pql plan export ---
|
|
# Auto-installed by pql init. Exports planning state so it's
|
|
# committed alongside code changes. Safe no-op if pql is absent.
|
|
if command -v pql >/dev/null 2>&1; then
|
|
pql plan export 2>/dev/null
|
|
if ! git diff --quiet -- .pql/pql-plan.json 2>/dev/null; then
|
|
git add .pql/pql-plan.json
|
|
fi
|
|
fi
|
|
# --- end pql ---
|