Skip to main content

git_diff

Function git_diff 

Source
pub fn git_diff(root: &Path, range: Option<&str>) -> Result<Diff>
Expand description

Capture the diff for root.

  • None range → unified working-tree + index diff against HEAD (what git diff HEAD would show).
  • Some("HEAD~3..HEAD") → ref-range diff.