From add028eed012408022841d04fa8c0ad1799dd5aa Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Mon, 11 May 2026 18:49:42 +0200 Subject: [PATCH] =?UTF-8?q?stop=20tracking=20.pql/hooks=20=E2=80=94=20fini?= =?UTF-8?q?sh=20T-28=20decommission?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pql 1.4.x bakes the absolute path to the pql binary into each hook when init plants them. Tracking the hooks made every developer's init produce a permanent dirty diff against the committed paths. The right fix per T-28 is to never track them: each clone's 'pql init' plants its own hooks locally, nothing tracked, no drift. Drops: - !.pql/hooks/ from .gitignore (now ignored alongside the rest of .pql/) - !.pql/pql-plan.json from .gitignore (the legacy snapshot was deleted in the changelog migration; this un-ignore was already dead) - The four tracked hook files (git rm --cached); local copies stay on disk and continue working. Co-Authored-By: Claude --- .pql/hooks/post-checkout | 11 ----------- .pql/hooks/post-merge | 10 ---------- .pql/hooks/post-rewrite | 8 -------- .pql/hooks/pre-commit | 8 -------- 4 files changed, 37 deletions(-) delete mode 100755 .pql/hooks/post-checkout delete mode 100755 .pql/hooks/post-merge delete mode 100755 .pql/hooks/post-rewrite delete mode 100755 .pql/hooks/pre-commit diff --git a/.pql/hooks/post-checkout b/.pql/hooks/post-checkout deleted file mode 100755 index e95e7a34..00000000 --- a/.pql/hooks/post-checkout +++ /dev/null @@ -1,11 +0,0 @@ -#!/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 --- diff --git a/.pql/hooks/post-merge b/.pql/hooks/post-merge deleted file mode 100755 index 8d5ac85d..00000000 --- a/.pql/hooks/post-merge +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -# --- pql plan import --- -# Auto-installed by pql init. Replays new changelog files into -# pql.db, then re-syncs decisions from decisions/*.md so the -# markdown-sourced half stays in step with whatever the merge -# brought in. Both ops are idempotent — a no-op merge is a no-op -# hook (D-8, D-16). -pql plan import 2>/dev/null || true -pql decisions sync 2>/dev/null || true -# --- end pql --- diff --git a/.pql/hooks/post-rewrite b/.pql/hooks/post-rewrite deleted file mode 100755 index 49d25ed1..00000000 --- a/.pql/hooks/post-rewrite +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -# --- pql plan rebuild (post-rewrite) --- -# Auto-installed by pql init. Fires after rebase / amend, both of -# which can rewrite the local view of the changelog. Rebuild is -# safe and deterministic; incremental replay would miss removals. -echo "pql: rebuilding planning database after rewrite..." >&2 -pql plan rebuild >/dev/null 2>&1 || true -# --- end pql --- diff --git a/.pql/hooks/pre-commit b/.pql/hooks/pre-commit deleted file mode 100755 index af2e0f20..00000000 --- a/.pql/hooks/pre-commit +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -# --- pql plan export --- -# Auto-installed by pql init. Exports planning state and stages the -# snapshot so it lands in the same commit as the change that produced -# it. The absolute pql path is baked in at install time — re-run -# 'pql init' if the binary moves. -pql plan export --stage 2>/dev/null || true -# --- end pql ---