pub fn diff<'a>( repo: &'a Repository, old_ref: &str, new_ref: &str, ) -> Result<Diff<'a>>
Try converting pre-receive hook references into a diff.