Skip to main content

git_diff_stat_between

Function git_diff_stat_between 

Source
pub fn git_diff_stat_between(
    path: &Path,
    base: &str,
    head: &str,
    max_lines: usize,
) -> Result<String>
Expand description

Shell out to git diff --stat <base>..<head> inside path. The output is truncated to max_lines lines so a sprawling diff stat doesn’t blow up the PR body (issue #84: 30-line cap by convention).