This commit is contained in:
Matt Green 2017-01-27 13:13:37 -05:00
parent c3e7cf00d5
commit 0d5de7c4da
1 changed files with 5 additions and 6 deletions

View File

@ -84,8 +84,8 @@ impl GitignoreFile {
}
let glob = try!(GlobBuilder::new(&pat)
.literal_separator(true)
.build());
.literal_separator(true)
.build());
builder.add(glob);
patterns.push(p);
@ -110,9 +110,9 @@ impl GitignoreFile {
for &i in matches.iter().rev() {
let pattern = &self.patterns[i];
return match pattern.pattern_type {
PatternType::Whitelist => false,
PatternType::Ignore => true,
}
PatternType::Whitelist => false,
PatternType::Ignore => true,
};
}
false
@ -292,4 +292,3 @@ mod tests {
assert!(file.is_excluded(&base_dir().join("target").join("blah.txt")));
}
}