feat
patch
ergonomics
task/ergonomics-merge-autostash-grep-files
#1 / 1
feat(ergonomics): muse merge --autostash + muse code grep --files
- merge --autostash: stash dirty working tree before merge, pop in finally block regardless of outcome (clean/conflict/error). Mirrors muse checkout --autostash using the same _stash_push_programmatic / _apply_autostash primitives. Mutually exclusive with --force. Extracted merge body into _run_merge() to enable clean try/finally.
- code grep --files: print unique matching file paths one per line, sorted. Mirrors grep -l / rg -l. Trivially pipeable without JSON parsing or key-name knowledge.
Tests: 13 merge-autostash cases + 10 grep-files cases; 163 existing merge+grep tests all passing.
sha256:40c2a9d7a0ed1fe019cc06cb5e1b8b7a2468b1398279bed823bfb3e122a46115
sha
+46
~4
symbols
sha256:dc75cb5018fff8320d083cfb3e0cd3c3ec67a279a8716d108d2075a60a16db36
snapshot
+46
symbols added
~4
symbols modified
0
dead code introduced
Semantic Changes
50 symbols
+
test_dirty_modified_file_restored_after_merge
method
method test_dirty_modified_file_restored_after_merge L208–215
+
test_dirty_tree_stash_popped_after_merge
method
method test_dirty_tree_stash_popped_after_merge L170–177
+
test_dirty_tree_wip_file_restored_after_merge
method
method test_dirty_tree_wip_file_restored_after_merge L179–184
+
test_autostash_and_force_are_mutually_exclusive
method
method test_autostash_and_force_are_mutually_exclusive L124–129
+
test_autostash_dry_run_does_not_create_stash
method
method test_autostash_dry_run_does_not_create_stash L131–139
+
test_files_compatible_with_file_filter
method
method test_files_compatible_with_file_filter L589–595
+
test_files_compatible_with_kind_filter
method
method test_files_compatible_with_kind_filter L580–587
+
test_files_excludes_non_matching_files
method
method test_files_excludes_non_matching_files L556–563
+
test_files_mutually_exclusive_with_count
method
method test_files_mutually_exclusive_with_count L569–571
+
test_files_mutually_exclusive_with_json
method
method test_files_mutually_exclusive_with_json L565–567
← Older
Oldest on task/ergonomics-merge-autostash-grep-files
All commits
Newer →
Latest on task/ergonomics-merge-autostash-grep-files
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:40c2a9d7a0ed1fe019cc06cb5e1b8b7a2468b1398279bed823bfb3e122a46115 --body "your comment"
No comments yet. Be the first to start the discussion.