feat: add --branch/-b flag to muse log
muse log already read history from an arbitrary branch/commit via the positional ref argument (muse log main), with no working-tree or HEAD side-effects, but had no explicit --branch/-b flag — callers reaching for the more self-documenting form got 'unrecognized arguments: --branch'.
Adds --branch/-b as an explicit alias for the positional ref, composable with all existing flags (--oneline, --max-count, --json, etc.). Passing both --branch and a positional ref is rejected as ambiguous.
Closes #45.
sha256:c69d8cff372b002f2871cf609d58e7c825be78f5db5a0cc9347c66ca17f7fc30
sha
+22
~2
symbols
sha256:8badfd4d8dcfc7c4d04aae15b858f63d58a4a2ccda53d97893bd1f80662c2c94
snapshot
+22
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes
24 symbols
+
test_branch_flag_and_positional_ref_together_is_rejected
method
method test_branch_flag_and_positional_ref_together_is_rejected L130–137
+
test_branch_flag_composes_with_oneline_and_max_count
method
method test_branch_flag_composes_with_oneline_and_max_count L103–117
+
test_branch_flag_matches_positional_ref
method
method test_branch_flag_matches_positional_ref L78–86
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:c69d8cff372b002f2871cf609d58e7c825be78f5db5a0cc9347c66ca17f7fc30 --body "your comment"
No comments yet. Be the first to start the discussion.