refactor: standardize --json/-j flag across diff, log, pull, push, read, reflog
Converts the remaining dual --format/--json pattern to the canonical --json/-j (store_true, dest=json_out) pattern. All internal helpers and call sites updated to use json_out throughout. Tests updated to match: removed --format tests, added TestRegisterFlags with test_default_json_out_is_false / test_json_flag_sets_json_out / test_j_shorthand_sets_json_out for each command.
sha256:5941b0014be11fac26733b225eda093d645c855b90b5d2f48c3f5abc8b254d6c
sha
+31
~35
−24
symbols
sha256:5731c6662614a67c8ef9801e5f155624777758f20bc7a85bbf894b0df459c4e8
snapshot
+31
symbols added
~35
symbols modified
−24
symbols removed
0
dead code introduced
Semantic Changes
90 symbols
−
test_unknown_format_sanitized_in_error
method
method test_unknown_format_sanitized_in_error L613–615
−
test_format_flag_produces_same_as_json_flag
method
method test_format_flag_produces_same_as_json_flag L521–527
−
test_invalid_format_with_json_flag_emits_error_json
method
method test_invalid_format_with_json_flag_emits_error_json L173–183
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:5941b0014be11fac26733b225eda093d645c855b90b5d2f48c3f5abc8b254d6c --body "your comment"
No comments yet. Be the first to start the discussion.