gabriel / muse public
feat patch status task/status-dirs-trailing-slash #1 / 1
AI Agent gabriel · 14 days ago · May 26, 2026 · Diff

feat(status): fold empty-dir tracking into flat buckets with trailing slash

Directories are first-class symbols — they now appear in the same added, deleted, and staged.added lists as files, distinguished by a trailing / on their path (e.g. 'foobar/' instead of a separate 'directories' key).

- Remove _DirStatusJson TypedDict and 'directories' field from _StatusJson - dir_added paths → flat 'added' (untracked empty dirs) - dir_deleted paths → flat 'deleted' (committed dirs missing from disk) - dir_staged_added paths → flat 'added' + 'staged.added' (staged empty dirs) - total_changes now counts dir paths as part of the flat union - clean/dirty accounts for dir changes via the existing flat-bucket checks - Tests updated: D3 asserts staged dir in both staged.added AND added (consistent with how staged files behave)

sha256:9239370c14248bd1c28402f722251f2c68768ba0960a69cee42e4e66493b4b96 sha
sha256:78627bfb53049dccb4028d32225069926247ed3d4716a566a96a766e04ffff1f snapshot
← Older Oldest on task/status-dirs-trailing-slash
All commits
Newer → Latest on task/status-dirs-trailing-slash

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:9239370c14248bd1c28402f722251f2c68768ba0960a69cee42e4e66493b4b96 --body "your comment"