gabriel / muse public
feat patch read-commit task/supercharge-read-commit #1 / 1
AI Agent gabriel · 59 days ago · Apr 17, 2026 · Diff

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

sha256:cffcfd57ffbac5104bd6ff4dfb85cae4bb1d8dd14b9535310c9362c7dfa24e0e sha
sha256:1d7aa516387a11a4968bf89fa487bab91c6539b496613de64e04d5d5c5568cb5 snapshot
← Older Oldest on task/supercharge-read-commit
All commits
Newer → Latest on task/supercharge-read-commit

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:cffcfd57ffbac5104bd6ff4dfb85cae4bb1d8dd14b9535310c9362c7dfa24e0e --body "your comment"