fix
range-diff
task/fix-range-diff-short-id
#1 / 1
fix(range-diff): strip sha256: prefix before truncating short IDs in text output
commit_id[:8] on a sha256:-prefixed ID like 'sha256:abc12345...' produces 'sha256:a' — 7 chars of prefix plus one hex digit. Two different commits can both appear as 'sha256:3' in the output, making the short IDs useless.
Fix: add _short_id() helper that calls removeprefix('sha256:')[:8] and use it in all four pair status branches of _print_text.
Add two regression tests: one asserting no sha256:-prefixed tokens appear on pair lines, one asserting short IDs are exactly 8 lowercase hex characters.
sha256:879ac06272f138196ad2cd163c5d7a9deebbf47cf8d6a88f42f820c0069cb12e
sha
sha256:76909033d6498d5888a925ca061105b115d95cf4fd7748c64879a0707131c5cd
snapshot
← Older
Oldest on task/fix-range-diff-short-id
All commits
Newer →
Latest on task/fix-range-diff-short-id
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:879ac06272f138196ad2cd163c5d7a9deebbf47cf8d6a88f42f820c0069cb12e --body "your comment"
No comments yet. Be the first to start the discussion.