pub fn write_loose_with_scratch(
repository: &impl Repository,
index: usize,
scratch: &mut [u8],
output: &mut impl Write,
) -> Result<(), Error>Expand description
Stream a loose object by index. Borrowed bodies use write_loose directly;
other providers need nonempty scratch for nonempty bodies. Output is identical
for every scratch size. Discard partial output on error.