public void AddGitignoreRules(params string[] rules) { foreach (var line in rules) { var reg = GitIgnoreRegex.Create(line); if (reg != null) { AllRegex.Add(reg); } } }
public void AddGitignoreFile(string filename) { var lines = File.ReadAllLines(filename); foreach (var line in lines) { var reg = GitIgnoreRegex.Create(line); if (reg != null) { AllRegex.Add(reg); } } }