Skip to main content

smudge

Function smudge 

Source
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.

  1. If input parses as a pointer, look the OID up in the store and stream the bytes out. Empty pointer → write nothing.
  2. If input doesn’t parse as a pointer, pass it through verbatim (head buffer + remaining stream).