Function get_diff

Source
pub fn get_diff(
    repo_path: &RepoPath,
    p: &str,
    stage: bool,
    options: Option<DiffOptions>,
) -> Result<FileDiff>
Expand description

returns diff of a specific file either in stage or workdir returns diff of a specific file either in stage or workdir returns diff of a specific file either in stage or workdir