refactor
patch
task/commit-identity-bytes
#1 / 1
refactor: extract commit_identity_bytes from compute_commit_id
compute_commit_id is now a thin wrapper over commit_identity_bytes, which returns the canonical null-byte-separated payload whose sha256 equals the commit ID. This lets callers (e.g. musehub) store the preimage in the object store without duplicating the formula.
Tests: TestCommitIdentityBytes — five cases covering importability, return type, sha256(bytes)==compute_commit_id round-trip, parent-order independence, and field sensitivity. Written red first.
sha256:bfa0f9d8505bfe74733c25cc8e2337a1446ede6897a90060b73e8b6cbbea2e3c
sha
sha256:debc87db6c678aedcba1458e1e9fb0a553ed1b3e2cf9a4aa70bca99d4b8b1047
snapshot
← Older
Oldest on task/commit-identity-bytes
All commits
Newer →
Latest on task/commit-identity-bytes
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:bfa0f9d8505bfe74733c25cc8e2337a1446ede6897a90060b73e8b6cbbea2e3c --body "your comment"
No comments yet. Be the first to start the discussion.