pub fn diff(repo_root: &Path, branch: &str, base: Option<&str>) -> Diff
Returns the diff of branch against base (default: the repo’s default branch, falling back to main), with a changed-files summary.
branch
base
main