Skip to main content

read_working_file

Function read_working_file 

Source
pub fn read_working_file(
    repo_path: &Path,
    rel_path: &str,
) -> Result<Option<String>>
Expand description

Read a working-tree file’s current on-disk content as text (lossy UTF-8). Ok(None) when the file is absent (e.g. deleted); Err only on a real I/O error.