pub fn reconstruct_commit_bytes(
heddle_repo: &Repository,
repo: &Repository,
mapping: &SyncMapping,
state: &State,
) -> GitResult<Vec<u8>>Expand description
Reconstruct the byte-exact git commit object content (the bytes
git cat-file commit prints, WITHOUT the §0 framing) for state.
repo is any writable sley repo: the git tree OID is resolved by re-exporting
state.tree through export_tree (git trees are content-addressed, so the
resulting OID is independent of which repo it is written into — the round-trip
fidelity gate proves this path reproduces the original tree SHA). Parent OIDs
come from the import mapping (ChangeId → original git OID), in
state.parents order — order is part of a commit’s identity (§1.2).