summaryrefslogtreecommitdiffstats
path: root/src/git/ignore.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/git/ignore.rs')
-rw-r--r--src/git/ignore.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/git/ignore.rs b/src/git/ignore.rs
index e10e77b..7c596bf 100644
--- a/src/git/ignore.rs
+++ b/src/git/ignore.rs
@@ -26,6 +26,7 @@ struct GitIgnoreRule {
}
impl GitIgnoreRule {
+ /// parse a line of a .gitignore file
fn from(line: &str, dir: &Path) -> Option<GitIgnoreRule> {
if line.starts_with('#') {
return None; // comment line
@@ -48,7 +49,7 @@ impl GitIgnoreRule {
}
if let Ok(pattern) = glob::Pattern::new(&p) {
let pattern_options = glob::MatchOptions {
- case_sensitive: true, // not really sure about this one
+ case_sensitive: true,
require_literal_leading_dot: false,
require_literal_separator: has_separator,
};