docs(repo-hygiene): surface reset --hard non-atomicity caveat on exit-5 gate (#485)#670
Conversation
…-5 gate (#485) The exit-5 bullet in git-tree-reset.md accurately described the gating contract but omitted that `reset --hard` is not atomic and may have partially modified tracked files before failing — a caveat the runtime exit-5 stderr message already surfaces. Add the parenthetical so the doc stays consistent with the script's stderr output. Patch bump to 0.4.2. Closes #485 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Claude finished @kyle-sexton's task in 1m 9s —— View job PR Review
Summary: This is a clean, minimal, docs-only patch. No behavioral changes. Three files touched: a version bump, a CHANGELOG entry, and a one-line documentation update.
|
|
Claude finished @kyle-sexton's task in 58s —— View job PR Review
This is a clean, minimal, docs-only patch. Three files touched: a one-line documentation update, a version bump, and a CHANGELOG entry.
|
Summary
The exit-5 gate bullet in
plugins/repo-hygiene/skills/clean/context/git-tree-reset.mdaccurately described the gating contract but was incomplete relative to the runtime stderr message: it did not tell a doc-only reader that a failedreset --hardmay have partially modified tracked files before it failed. This is a one-line doc-consistency fix (patch bump0.4.1→0.4.2).Fix
Added a parenthetical to the exit-5 bullet so the context doc is consistent with the exit-5 stderr message the script already emits.
Verification
Doc — before (
git-tree-reset.md):Doc — after:
Script stderr it stays consistent with (
skills/clean/scripts/git-tree-reset.sh, exit-5 path):The added parenthetical ("the reset itself may have partially modified tracked files, since
reset --hardis not atomic") mirrors the script's stderr wording ("reset --hard is not atomic and may have partially modified tracked files"). No behavioral change; docs only.Closes #485
Related
clean -fdxeven whenreset --hardfailed (partial destructive op) #394) — the parenthetical was flagged in the fix(repo-hygiene): gate git-tree-reset clean on reset success #460 review but left unfixed to preserve that PR's merge-ready head SHA (745def6, the commit that added the stderr caveat).🤖 Generated with a Claude Code implementation subagent (issue #485)