pub fn write(
repository: &impl Repository,
cache: &mut impl PackCache,
scratch: &mut [u8],
output: &mut impl Write,
) -> Result<()>Expand description
Hits stream directly. Misses generate into caller scratch before insertion.
Cache failures propagate; use pack::write when caching is unnecessary.
Independent ref roots return Unsupported before accessing the backend:
a HEAD-only key cannot identify their union or a selected closure.