Files
clide/.pql/hooks/post-checkout
T
jpmschweitzerandClaude Opus 4.7 d162ba205e
test / unit + widget + golden + a11y (push) Failing after 28s
test / integration_test (xvfb) (push) Has been skipped
test / bundle smoke (xvfb 5s) (push) Has been skipped
test / daemon subprocess + web WASM smoke (push) Has been skipped
test / dart doc (lib API) (push) Failing after 1m3s
install pql 1.4.26 changelog-mode hooks
Replaces the legacy pql-plan.json export hooks with the new
changelog-aware set: pre-commit now stages incremental changelog
deltas via 'pql plan export --stage'; post-merge replays new
changelog files into pql.db; post-checkout / post-rewrite rebuild
pql.db when branch state changes. Companion shims under .githooks/
keep core.hooksPath = .githooks the single activation point.

Hook bodies are de-baked — pql 1.4.26 ships them with absolute
paths to the local pql binary, which doesn't survive cross-machine
tracking. Restored 'pql' on PATH form so the tracked copy stays
portable. Filed back-channel for pql to keep portable form.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-10 01:31:06 +02:00

12 lines
422 B
Bash
Executable File

#!/bin/sh
# --- pql plan rebuild (post-checkout) ---
# Auto-installed by pql init. On branch checkout (third arg == 1),
# rebuild pql.db from the changelog so the local cache reflects the
# new branch's planning state. File-level checkouts ($3 == 0) are
# skipped.
if [ "$3" = "1" ]; then
echo "pql: rebuilding planning database from changelog..." >&2
pql plan rebuild >/dev/null 2>&1 || true
fi
# --- end pql ---