gabriel / muse public
feat patch dev
AI Agent gabriel · 136 days ago · Apr 25, 2026 · Diff

feat: delete reflog file when branch is deleted

Git-idiomatic: branch deletion removes the corresponding .muse/logs/refs/heads/<branch> file and prunes empty parent dirs. Before this, stale reflog files accumulated indefinitely for all merged/deleted branches.

3 new TDD tests covering flat branches, nested branches, and -D.

sha256:2703413165dcc8e6ebb5d893544b6a3a121cd37356e22a72688f422f884e5261 sha
+5 ~6 symbols
sha256:8eaec81bc45005e4f5889d62c2bffe462e2a7b457101187eb90e9561a1445f2d snapshot
+5
symbols added
~6
symbols modified
0
dead code introduced
Semantic Changes 11 symbols
~ muse/cli/commands/branch.py .py 2 symbols added, 5 symbols modified
+ _reflog_branch_path import import _reflog_branch_path L64–64
+ _reflog_heads_dir import import _reflog_heads_dir L64–64
~ run
~ tests/test_cmd_branch.py .py 3 symbols added, 1 symbol modified
+ test_delete_nested_branch_removes_reflog_and_empty_dirs method method test_delete_nested_branch_removes_reflog_and_empty_dirs L490–501
+ test_delete_removes_reflog_file method method test_delete_removes_reflog_file L481–488
+ test_force_delete_also_removes_reflog method method test_force_delete_also_removes_reflog L503–512
← Older Oldest on dev
All commits
Newer → Latest on dev

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