pub fn build_ignore_patterns( given: &str, ignore_root: &Path, ignore_filename: &str, ) -> Result<IgnoreRules>
Build the ignore rules with the given directory