gabriel / muse public
feat patch task/restore-command #1 / 1
gabriel · 62 days ago · Apr 14, 2026 · Diff

feat: implement muse restore — working-tree and stage file restoration

Dedicated file restoration: --worktree (default) restores disk from stage or HEAD; --staged unstages (removes stage entry); --staged --worktree resets both. --source <ref> targets any commit or branch. Delegates object fetch to restore_object (inode-preserving, integrity-verified). 26 TDD tests: unit helpers, worktree/staged/both modes, --source, multi-path, dry-run, JSON, security (path traversal rejected), stress (100 files).

sha256:8e9d40a19ecb5debe9a28b776dee78555efe0be65c32d92a2ab1ed7b3e3dc2c2 sha
sha256:a079ae256f517a71793b6673d0e6f67dfbb92dc0a0598e0e5a30e6f9108e58bd snapshot
← Older Oldest on task/restore-command
All commits
Newer → Latest on task/restore-command

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:8e9d40a19ecb5debe9a28b776dee78555efe0be65c32d92a2ab1ed7b3e3dc2c2 --body "your comment"