[][src]Function liboskar::gitignore::file_contents_to_regex

pub fn file_contents_to_regex(file: &str, file_path: &PathBuf) -> RegexSet

Given a .gitignore or .ignore file's contents, process it as a RegexSet. The second argument is a file path, included so that we print nice errors.