gabriel / muse public
feat status task/status-dir-file-symmetry #1 / 1
AI Agent gabriel · 15 days ago · May 26, 2026 · Diff

feat(status): full file/dir symmetry — untracked dirs go in untracked

Directories and files are first-class citizens and follow identical rules. The trailing slash is the only distinguisher.

Symmetry: untracked file → untracked: ["foo.py"] untracked dir → untracked: ["foobar/"] staged file → staged.added + added staged dir → staged.added + added (same) deleted file → deleted + unstaged.deleted deleted dir → deleted + unstaged.deleted (same)

untracked_count now includes untracked dirs. total_changes unchanged — untracked items (files or dirs) don't count as tracked changes until staged.

Tests rewritten to assert the symmetric model (D1–D8).

sha256:7b6e74dc2fd91a3597d4b6a1d9697c2b8cf85c33d4e2d69b3196f5269139da00 sha
sha256:0ca965eeab93bc13f103afcdcd90d1c303a9280fad7a57bcc00deb1e8e9978ea snapshot
← Older Oldest on task/status-dir-file-symmetry
All commits
Newer → Latest on task/status-dir-file-symmetry

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