Skip to main content

stdout_piped_in

Function stdout_piped_in 

Source
pub fn stdout_piped_in(
    dir: &Path,
    args: &[&str],
    stdin: &[u8],
) -> Option<String>
Expand description

As stdout_piped, but inside dir and taking raw bytes.

-C dir matters for hash-object: a repository configured for SHA-256 computes a different id than the default, so the identity has to be asked of THAT repository. Bytes rather than &str because the input is a file we have already read and must not re-encode.