gabriel / muse public
fix BREAKING main #10 / 44
AI Agent gabriel · 12 days ago · May 29, 2026 · Diff

fix: snapshot() carries forward committed empty dirs when staging new ones

When committing a second empty directory, snapshot() only unioned staged_empty_dirs (new A sentinels) with file-derived dirs — dropping committed empty dirs from HEAD. foobar/ then showed as untracked after committing bufar/.

Fix: also include committed_empty_dirs from HEAD, minus any staged for deletion. All three sets are unioned to form staged_dirs.

sha256:905215548c1b358bdbac94afa2d508b804f852675dc2311be67b916d79897074 sha
~2 symbols
sha256:1b8f5633e00c04a1dc4f37dd28b2de1bde9b83bf3dbb29f20d20aea2b4931dc0 snapshot
~2
symbols modified
0
dead code introduced
Semantic Changes 2 symbols
~ muse/plugins/code/plugin.py .py 2 symbols modified

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:905215548c1b358bdbac94afa2d508b804f852675dc2311be67b916d79897074 --body "your comment"