pub fn write_selected_with_scratch(
repository: &impl Repository,
indices: &[usize],
scratch: &mut [u8],
output: &mut impl Write,
) -> Result<ObjectId>Expand description
Write exactly the chosen object indices, in caller-specified order. Indices
must be valid and unique; violations fail before any output. Use a validated
repository’s select_objects result for an exact reachable closure. Encoder
and read budgets match write_with_scratch; no pack-sized buffer is needed.