pub fn git_changed_line_ranges(
repo_root: &Path,
base: &str,
) -> Result<HashMap<PathBuf, Vec<RangeInclusive<usize>>>>Expand description
Returns changed line ranges per relative file path.
Runs both git diff --unified=0 <base> (unstaged) and
git diff --unified=0 --cached <base> (staged) and merges the results.
validate_git_ref is called before any subprocess is spawned.