pub fn resolve_commit_diff_pathspecs(
repo: &Repository,
cwd_prefix: Option<&str>,
raw_paths: &[String],
) -> Result<Vec<String>, ResolveDiffArgumentsError>Expand description
Normalize pathspecs for a commit or range diff to repository-relative form.
Unlike working-tree diffs, the paths need not exist in the current checkout (a path deleted on the tip, or exclude magic, is fine), and a bare repository resolves them against the git directory.
§Parameters
repo- repository the paths belong to.cwd_prefix- path from the work tree root to the process cwd;Noneat the root, when unknown, or in a bare repository.raw_paths- pathspecs as given.
§Errors
Returns ResolveDiffArgumentsError::Pathspec when a pathspec cannot be parsed or lies
outside the work tree.