pub fn is_path_ignored(
repo_root: &Path,
rel_path: &str,
) -> Result<bool, GitError>Expand description
Returns true if rel_path is ignored by git (respecting .gitignore, .git/info/exclude, and global excludes).
Uses git check-ignore -q <path>:
- exit code 0 => ignored
- exit code 1 => not ignored
- otherwise => error