Skip to main content

smudge

Function smudge 

Source
pub fn smudge(
    key: Option<&MasterKey>,
    path: &[u8],
    content: &[u8],
    selected: bool,
    declared_eol: Option<EolMode>,
    autocrlf: Option<&str>,
    core_eol: Option<&str>,
) -> Result<Outcome>
Expand description

The check-out direction: object database → working tree.

Decides from the file’s own header, never from .git-xcrypt. Git does not promise to write .git-xcrypt before the files it filters, so reading the declaration here would be a race; and a file that was never normalised must never receive a conversion its content did not go through.

§Errors

Error::NoKey for our content with no key loaded, plus the errors cipher::decrypt reports.