pub fn is_path_gitignored<P: AsRef<Path>, C: AsRef<Path>>( file_path: P, cwd: C, ) -> bool
Checks if a path is ignored by git (via git check-ignore).
git check-ignore