feat(read-commit): supercharge — _short_id, duration_ms, exit_code, 31 new tests
- Add _short_id() helper: sha256:<12-hex> (19 chars), prefix always preserved - Fix text format: commit_id[:12] → _short_id() — was only 5 hex after prefix - Add duration_ms (float, 3dp, ms) and exit_code (0) to all JSON success output - duration_ms / exit_code are command metadata — not commit fields; always present even when --fields filters the commit record - Add tests/test_read_commit_supercharge.py: 31 tests covering _short_id unit, duration/exit_code, text format short-ID, data integrity (sha256: on all ID fields), edge cases (HEAD~N depth, unknown branch, --fields empty/duplicate), merge commit parent2, performance threshold - Update test_cmd_read_commit.py: 3 --fields tests that asserted exact key sets now strip duration_ms/exit_code before comparing
0 comments
muse hub commit comment sha256:cffcfd57ffbac5104bd6ff4dfb85cae4bb1d8dd14b9535310c9362c7dfa24e0e --body "your comment"
No comments yet. Be the first to start the discussion.