fix: apply_manifest only deletes tracked files; _walk_tree stages dotfiles
Two data-safety bugs fixed:
1. apply_manifest(root, prev_manifest, target_manifest) — new 3-arg signature. Deletion candidates come from prev_manifest.keys() instead of walk_workdir(), so untracked files (Write tool docs, local scripts) are never deleted.
2. _walk_tree in code_stage.py — removed dotfile skip. muse code add . now stages .museattributes, .museignore, and other dotfiles just as git add . stages .gitattributes and .gitignore.
All callers updated. 196 tests pass.
sha256:55a8bbec0d35d504592b28a75462e1010cfed70023c31283d5057e577347cd8f
sha
sha256:acdbb52fcb78d43ef8dc7380c61e8e21613d35603481cb6ce620617893afd404
snapshot
← Older
Oldest on task/commit-id-v2
All commits
Newer
fix: migrate tests to commit-id-v2 (branch→created_on_branch, co…
sha256:6b6e63d804f829df8580591dc85e98ac540b9dfcac10529a291c97c1c04a6dbc
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:55a8bbec0d35d504592b28a75462e1010cfed70023c31283d5057e577347cd8f --body "your comment"
No comments yet. Be the first to start the discussion.