diff

Function diff 

Source
pub fn diff<'a>(
    repo: &'a Repository,
    old_ref: &str,
    new_ref: &str,
) -> Result<Diff<'a>>
Expand description

Try converting pre-receive hook references into a diff.