Skip to main content

gather_diff

Function gather_diff 

Source
pub fn gather_diff(
    uncommitted: bool,
    base: Option<&str>,
    commit: Option<&str>,
    root: Option<&str>,
) -> Result<String>
Expand description

Gather git diff content for the given review targets. The returned string concatenates all requested diffs; bails if nothing matched.

uncommitted = true captures staged, unstaged, AND untracked files.