Skip to main content

unsigned_commit

Function unsigned_commit 

Source
pub fn unsigned_commit(
    id: &Sha1Id,
    body: &[u8],
    signer: [u8; 32],
    tree: Hash,
    parents: Vec<Hash>,
) -> Result<Commit, BridgeError>
Expand description

Derive the import-v1 unsigned commit fields from Git bytes and resolved edges. No private key, object writes or mapping-cache mutation is required.

§Errors

Rejects malformed or unrepresentable source fields and incorrect parent count.