feat
patch
reflog
task/supercharge-reflog
#1 / 1
feat(reflog): supercharge — sha256: prefix on IDs, duration_ms, exit_code, 35 new tests
- _short_id() normalises bare-hex (on-disk format) to sha256:<12-hex> - Text output: new_id/old_id shown as sha256:<12-hex> short IDs - JSON output: new_id/old_id emitted as sha256:<64-hex> canonical form - Both _ReflogResultJson and _ReflogAllJson now include duration_ms + exit_code - duration_ms and exit_code present in all JSON paths (main, --all, empty) - Module docstring JSON schema updated to reflect new fields and sha256: IDs - 35 new tests covering: _short_id unit, text short IDs, JSON ID integrity, duration_ms/exit_code (8 cases), filter behaviour, security, performance
sha256:fea5edc7fedb0a9461f9fce4982dd5669b7890512a47ab7c430202993f181667
sha
+65
~4
symbols
sha256:faaccedf712d52f522b142ed1a3fe68f62c2e34c9643435416ca4178417e45c1
snapshot
+65
symbols added
~4
symbols modified
0
dead code introduced
Semantic Changes
69 symbols
+
test_empty_reflog_json_has_duration_ms
method
method test_empty_reflog_json_has_duration_ms L278–283
+
test_operation_and_author_filters_combined
method
method test_operation_and_author_filters_combined L338–350
+
test_total_reflects_post_filter_count
method
method test_total_reflects_post_filter_count L292–304
+
test_null_old_id_sha256_zeros_in_json
method
method test_null_old_id_sha256_zeros_in_json L212–217
+
test_ansi_in_new_id_sanitized_in_text
method
method test_ansi_in_new_id_sanitized_in_text L359–366
+
test_bare_hex_12_hex_chars_after_prefix
method
method test_bare_hex_12_hex_chars_after_prefix L107–110
+
test_initial_entry_shows_initial_keyword
method
method test_initial_entry_shows_initial_keyword L161–166
+
test_new_id_shown_as_sha256_short_in_text
method
method test_new_id_shown_as_sha256_short_in_text L144–151
+
test_old_id_shown_as_sha256_short_in_text
method
method test_old_id_shown_as_sha256_short_in_text L153–159
~
run
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:fea5edc7fedb0a9461f9fce4982dd5669b7890512a47ab7c430202993f181667 --body "your comment"
No comments yet. Be the first to start the discussion.