fix
main
#18 / 100
fix: guard all apply_manifest callers against dirty working tree
Adds muse/cli/guard.py::require_clean_workdir() — a single pre-flight check that mirrors Git's behaviour: modified/deleted tracked files block the operation; brand-new untracked files are left alone.
Guards added to: merge, checkout, reset (--hard only), revert, cherry-pick. Each also gains a --force flag to bypass the guard when intentional.
Also restores branch.py (full git parity, colours) and log.py (lane-based --graph DAG renderer, --all flag) which were wiped by the merge that prompted this fix, and updates TestBranch to reflect the new safe-delete semantics (-d blocks unmerged branches, -D force-deletes them).
9
files changed
415
files in snapshot
Files Changed
415 in snapshot
+1
~8
No comments yet. Be the first to start the discussion.