Skip to main content

get_commit_file_diff

Function get_commit_file_diff 

Source
pub fn get_commit_file_diff(
    repo_path: &Path,
    commit_oid: &str,
    file_path: &str,
) -> Vec<DiffLine>
Expand description

Return the unified diff of file_path as it changed in commit_oid (hex string) inside the repository at repo_path. Returns an empty Vec on any error.