pub fn write_pack(
objects: &[(ObjectHash, Object)],
pack_path: &Path,
encryption: &EncryptionManager,
) -> Result<Vec<PackIndexEntry>, LitError>Expand description
Write a pack file from a set of objects.
encryption must be the same manager the loose objects were written
through. A packed object gets the identical compress-then-encrypt treatment,
so packing an encrypted repository cannot quietly put its contents on disk
in the clear. When encryption is disabled the manager passes bytes through
untouched and the pack is plain zlib.