Commit d22fd81
committed
ignore: remove now-useless check for LEADINGDIR
When checking whether a rule negates another rule, we were checking
whether a rule had the `GIT_ATTR_FNMATCH_LEADINGDIR` flag set and, if
so, added a "/*" to its end before passing it to `fnmatch`. Our code now
sets `GIT_ATTR_FNMATCH_NOLEADINGDIR`, thus the `LEADINGDIR` flag shall
never be set. Furthermore, due to the `NOLEADINGDIR` flag, trailing
globs do not get consumed by our ignore parser anymore.
Clean up code by just dropping this now useless logic.1 parent 20b4c17 commit d22fd81
1 file changed
+3
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | 136 | | |
143 | | - | |
| 137 | + | |
144 | 138 | | |
145 | | - | |
146 | | - | |
147 | | - | |
| 139 | + | |
148 | 140 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
| 141 | + | |
153 | 142 | | |
154 | 143 | | |
155 | 144 | | |
| |||
0 commit comments