Function get_diff_index
Source pub fn get_diff_index(_path: &Path) -> Result<Vec<GitDiffFile>>
Expand description
Gets the git diff between the working directory and the index (staged changes).
§Parameters
path: The path to the git repository.
§Returns
Ok(Vec<GitDiffFile>) with a list of files with changes.
Err(Error) if an error occurred while getting the diff.