From f7f39eed1c51ff09062613a697b8f8307dd8756d Mon Sep 17 00:00:00 2001 From: Marius Lange Date: Thu, 15 Oct 2026 18:09:34 +0200 Subject: [PATCH 1/2] Link a pre-cruft repo at the commit it last matched Linking at the default, the latest commit, leaves cruft update nothing to apply. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011aQpF4MA9v7dTVK1FqMMVJ --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0148a6f..d1207e1 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,9 @@ Resolve conflicts and any `*.rej` files by hand; pre-commit refuses to commit ei `analysis/`, `data/`, `src/` and `tests/` belong to the project once created, and updates leave them alone (`[tool.cruft] skip` in its `pyproject.toml`). -A repo created before this template used cruft starts receiving updates with -`uvx cruft link https://github.com/quadbio/analysis_template`. +A repo created before this template used cruft is linked once with +`uvx cruft link https://github.com/quadbio/analysis_template`. At its commit prompt, enter the template commit +whose files the repo last matched, not the default latest; `cruft update` then applies everything since. ## Develop the template From bc2915ed3c7c2c6d42f145ded5052256320f4382 Mon Sep 17 00:00:00 2001 From: Marius Lange Date: Thu, 15 Oct 2026 18:12:39 +0200 Subject: [PATCH 2/2] Link no earlier than the first renderable template commit cruft update renders the linked commit; commits before 88ea222 have no cookiecutter.json. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011aQpF4MA9v7dTVK1FqMMVJ --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d1207e1..868ab91 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,8 @@ Resolve conflicts and any `*.rej` files by hand; pre-commit refuses to commit ei A repo created before this template used cruft is linked once with `uvx cruft link https://github.com/quadbio/analysis_template`. At its commit prompt, enter the template commit -whose files the repo last matched, not the default latest; `cruft update` then applies everything since. +whose files the repo last matched, not the default latest, and no earlier than `88ea222`, the first one cruft can +render; `cruft update` then applies everything since. ## Develop the template