Add setup-tracked-hooks workspace tool #67

Merged
vnprc merged 1 commit from agent/setup-tracked-hooks into master 2026-06-24 05:28:15 +01:00
Contributor

New workspace tool that reads the repository registry and, for each repo with a hookspath field whose checkout exists under ~/work, writes .hookspath in the repo root and adds .hookspath to .git/info/exclude. Idempotent and safe when the registry or repo is missing.

Includes 7 tests covering creation, exclude entry, idempotency, staleness update, and skip scenarios.

Part of vnprc/profiles#57.

Validation

bash tests/setup-tracked-hooks.sh
# expected: 7 setup-tracked-hooks tests passed.
New workspace tool that reads the repository registry and, for each repo with a `hookspath` field whose checkout exists under `~/work`, writes `.hookspath` in the repo root and adds `.hookspath` to `.git/info/exclude`. Idempotent and safe when the registry or repo is missing. Includes 7 tests covering creation, exclude entry, idempotency, staleness update, and skip scenarios. Part of vnprc/profiles#57. ## Validation ``` bash tests/setup-tracked-hooks.sh # expected: 7 setup-tracked-hooks tests passed. ```
Reads the repository registry and, for each repo with a hookspath
field whose checkout exists under ~/work, writes .hookspath and adds
it to .git/info/exclude. Idempotent and safe when the registry or
repo is missing.

Includes 7 tests covering creation, exclude entry, idempotency,
staleness update, and skip scenarios.

Part of vnprc/profiles#57.
vnprc approved these changes 2026-06-24 05:28:09 +01:00
vnprc merged commit d250066c47 into master 2026-06-24 05:28:15 +01:00
vnprc deleted branch agent/setup-tracked-hooks 2026-06-24 05:28:15 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
allod/tools!67
No description provided.