Skip to main content

get_commit_diff

Function get_commit_diff 

Source
pub fn get_commit_diff(
    repo: &Repository,
    oid_str: &str,
) -> Result<Vec<DiffInfo>>
Expand description

Return the diff introduced by a specific commit (compared to its first parent).

For a root commit (no parents), diffs against an empty tree.