Skip to main content

write_pack

Function write_pack 

Source
pub fn write_pack(objects: &[GitObject]) -> Vec<u8> ⓘ
Expand description

Serialise objects into a version-2 pack file.

Layout: "PACK", version 2, object count, then for each object a type/size header followed by its zlib-compressed body, then a SHA-1 trailer over everything preceding it.