Commit c5643e7
committed
fix: correct gitignore pattern handling by removing negation pattern support
- Remove early return that prevented default ignore patterns from being checked when custom patterns were matched
- Remove support for negation patterns (patterns starting with !) as they were causing incorrect exclusion behavior
- Update tests to reflect corrected behavior where important.log is now properly matched by *.log pattern
- Allow default ignore patterns to be applied after custom pattern matching instead of short-circuiting
This change ensures that ignore patterns work as expected by not prematurely returning when negation patterns are encountered, and instead allows all applicable ignore patterns to be evaluated properly.1 parent 93a610e commit c5643e7
File tree
2 files changed
+5
-5
lines changed- codewiki/src/be/dependency_analyzer/analysis
- tests
2 files changed
+5
-5
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments