Commit d6835f2
Implement Needle::Pattern for full glob support in one-sided refspecs
- Added Pattern matching case in Needle::matches() using gix_glob::wildmatch
- Added Pattern handling in to_bstr_replace() method
- Added is_complex_pattern() helper to detect patterns requiring wildmatch
- Only use Needle::Pattern for complex patterns (multiple asterisks or [, ], ?, \)
- Simple single-asterisk globs continue using efficient Needle::Glob
- Fixed test pattern from v[0.9]* to v[0-9]* to match v1.0 correctly
Co-authored-by: Byron <63622+Byron@users.noreply.github.com>1 parent 1bccc54 commit d6835f2
File tree
2 files changed
+27
-2
lines changed- gix-refspec
- src/match_group
- tests/refspec
2 files changed
+27
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
107 | 114 | | |
108 | 115 | | |
109 | 116 | | |
| |||
139 | 146 | | |
140 | 147 | | |
141 | 148 | | |
| 149 | + | |
142 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
143 | 154 | | |
144 | 155 | | |
145 | 156 | | |
| |||
176 | 187 | | |
177 | 188 | | |
178 | 189 | | |
179 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
180 | 195 | | |
181 | 196 | | |
182 | 197 | | |
183 | 198 | | |
184 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
0 commit comments