Skip to main content

commit_object_id

Function commit_object_id 

Source
pub fn commit_object_id(content: &[u8]) -> ObjectId
Expand description

The git object id (SHA-1) of a commit whose reconstructed content bytes are content: frame per §0, then hash. Equals the original commit SHA exactly when content is byte-identical to the original object.