feat(cat): add --staged flag to muse cat and muse code cat
Reads staged index (HEAD manifest + stage overrides) rather than the working tree or a commit ref. Mutually exclusive with --at. Mirrors 'git show :path'. Source ref is 'staged' in JSON output.
Tests: 11 new tests in TestCatStaged (core_cat), 8 new in TestCatStaged (code cat). 143 total tests passing.
sha256:11f1f8faa0ce023a10d4c2bb11760d030e7b3ccb0785e63325eb0382ee2a77ad
sha
+22
~4
symbols
sha256:57c7ce06fd56f76ab24aacb37e61e4ea795e0b4475354a357bc781121afa43f1
snapshot
+22
symbols added
~4
symbols modified
0
dead code introduced
Semantic Changes
26 symbols
+
test_staged_and_at_mutually_exclusive
method
method test_staged_and_at_mutually_exclusive L519–524
+
test_staged_falls_back_to_committed_when_no_stage_entry
method
method test_staged_falls_back_to_committed_when_no_stage_entry L509–517
+
test_staged_json_source_ref_is_staged
method
method test_staged_json_source_ref_is_staged L501–507
+
test_staged_and_at_mutually_exclusive
method
method test_staged_and_at_mutually_exclusive L726–732
+
test_staged_deletion_gives_file_not_tracked
method
method test_staged_deletion_gives_file_not_tracked L705–713
+
test_staged_ignores_working_tree_edits
method
method test_staged_ignores_working_tree_edits L754–769
+
test_staged_json_source_ref_is_staged
method
method test_staged_json_source_ref_is_staged L680–690
+
test_staged_on_committed_file_without_restaing_shows_committed_content
method
method test_staged_on_committed_file_without_restaing_shows_committed_content L692–703
+
test_staged_reads_staged_blob_not_disk
method
method test_staged_reads_staged_blob_not_disk L665–678
+
test_staged_untracked_file_not_readable
method
method test_staged_untracked_file_not_readable L746–752
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:11f1f8faa0ce023a10d4c2bb11760d030e7b3ccb0785e63325eb0382ee2a77ad --body "your comment"
No comments yet. Be the first to start the discussion.