pub fn smudge<R: Read, W: Write>(
store: &Store,
input: &mut R,
output: &mut W,
) -> Result<SmudgeOutcome, SmudgeError>Expand description
Apply the smudge filter to input, writing the working-tree content
(or pass-through bytes) to output.
- If
inputparses as a pointer, look the OID up in the store and stream the bytes out. Empty pointer → write nothing. - If
inputdoesn’t parse as a pointer, pass it through verbatim (head buffer + remaining stream).