Commit a0cacc82 by Russell Belfer

For negative matches, always use leading dir match

parent aa5cdf63
...@@ -534,7 +534,8 @@ int git_attr_fnmatch__parse( ...@@ -534,7 +534,8 @@ int git_attr_fnmatch__parse(
} }
if (*pattern == '!' && (spec->flags & GIT_ATTR_FNMATCH_ALLOWNEG) != 0) { if (*pattern == '!' && (spec->flags & GIT_ATTR_FNMATCH_ALLOWNEG) != 0) {
spec->flags = spec->flags | GIT_ATTR_FNMATCH_NEGATIVE; spec->flags = spec->flags |
GIT_ATTR_FNMATCH_NEGATIVE | GIT_ATTR_FNMATCH_LEADINGDIR;
pattern++; pattern++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment