gabriel / muse public
refactor patch task/shelf #2 / 3
gabriel · 158 days ago · Apr 16, 2026 · Diff

refactor: migrate all stash callers to shelf

- checkout.py: --autostash → --autoshelf; _apply_autostash → _apply_autoshelf; _stash_push/pop_programmatic → _shelf_push/pop_programmatic - merge.py: same autoshelf rename; shelf push carries intent + branch metadata - diff.py: --stash → --shelf; uses shelf snapshot directly (no delta reconstruction) - gc.py: _collect_stash_objects → _collect_shelf_objects; reads shelf.json snapshot

Verbiage: work sits 'on the shelf' not 'in the shelf' — preposition matters.

sha256:5bbc3926d11772a165877152a69743a10ad6af5081d6068c35afa8c796eab3a5 sha
+9 ~9 −9 symbols
sha256:ea5fc45497f0a34ddc077bff006b80849a7d9db82331405c2eb379f3484e2721 snapshot
+9
symbols added
~9
symbols modified
−9
symbols removed
0
dead code introduced
Semantic Changes 27 symbols
~ muse/cli/commands/checkout.py .py 3 symbols added, 3 symbols removed, 2 symbols modified
_apply_autostash function function _apply_autostash L93–126
_stash_pop_programmatic import import _stash_pop_programmatic L80–80
_stash_push_programmatic import import _stash_push_programmatic L80–80
+ _apply_autoshelf function function _apply_autoshelf L93–121
+ _shelf_pop_programmatic import import _shelf_pop_programmatic L80–80
+ _shelf_push_programmatic import import _shelf_push_programmatic L80–80
~ run
~ muse/cli/commands/diff.py .py 2 symbols added, 2 symbols removed, 2 symbols modified
_load_stash import import _load_stash L74–74
_resolve_index import import _resolve_index L74–74
+ _load_shelf import import _load_shelf L74–74
+ _resolve_entry import import _resolve_entry L74–74
~ run
~ muse/cli/commands/merge.py .py 2 symbols added, 2 symbols removed, 3 symbols modified
_apply_autostash import import _apply_autostash L80–80
_stash_push_programmatic import import _stash_push_programmatic L81–81
+ _apply_autoshelf import import _apply_autoshelf L80–80
+ _shelf_push_programmatic import import _shelf_push_programmatic L81–81
~ run
~ muse/core/gc.py .py 2 symbols added, 2 symbols removed, 2 symbols modified
_MAX_STASH_BYTES variable variable _MAX_STASH_BYTES L72–72
_collect_stash_objects function function _collect_stash_objects L168–194
+ _MAX_SHELF_BYTES variable variable _MAX_SHELF_BYTES L72–72
+ _collect_shelf_objects function function _collect_shelf_objects L168–194

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