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