pub fn frame_git_object(kind: &str, content: &[u8]) -> Vec<u8> ⓘExpand description
Frame an object’s content for hashing per spike §0:
<kind> <ascii-decimal-len>\0<content>. A git object’s id is the SHA-1 of
THIS buffer — never of the bare content (git cat-file strips the framing).
<len> is the byte length of content (after all folding/newlines), with no
leading zeros.