refactor: directories are proper content-addressed objects (EMPTY_DIR_OID)
Replace the magic sentinel string 'dir:' with a real content hash: EMPTY_DIR_OID = blob_id(b'') # sha256:473a0f4c...
- stage.py: define EMPTY_DIR_OID, export it; migrate legacy 'dir:' entries on read so existing stage.json files upgrade transparently - plugin.py: _DIR_SENTINEL = EMPTY_DIR_OID; write zero-byte object to store when staging dirs (store is now complete and pushable) - code_stage.py: import EMPTY_DIR_OID; write_object() before staging dirs - mv.py: import EMPTY_DIR_OID; write_object() in dir branch - diff.py: check EMPTY_DIR_OID instead of 'dir:' - status.py: import _DIR_SENTINEL from stage; remove local re-definitions
sha256:3f46367650ccd121654f3bbe06ed3471a9007c3229fe9556d1069d64b6a2550a
sha
+10
~27
symbols
sha256:1e42ca724a43389c5ab860402c883533baf53efa79472e47154dda550918784d
snapshot
+10
symbols added
~27
symbols modified
0
dead code introduced
Older
feat: muse read --manifest includes directories field
sha256:68c8fd843e189a819a72c4f5c218bc0be7e61db5f380cdb7e5dc54538a43a123
All commits
Newer
fix: two dir CRUD bugs found during permutation testing
sha256:5c3ffd124ce4fa869be36d79ea5e5c3bc8893a79c4f55ed37a013001522abbf0
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:3f46367650ccd121654f3bbe06ed3471a9007c3229fe9556d1069d64b6a2550a --body "your comment"
No comments yet. Be the first to start the discussion.