Commit a34a5ce
feat: Allow config cache for microsoft/git 2.53.0.vfs.0.1+
Context:
The config cache version gate requires Git 2.54.0+ because that
is when upstream Git will include the fix for 'git config list
--type=<X>'. However, the microsoft/git fork may fast-track this
fix into a 2.53.0.vfs.0.1 release, allowing users of Git for
Windows (VFS-enabled builds) to benefit from the cache sooner.
Justification:
The microsoft/git fork uses version strings like
'2.53.0.vfs.0.1' where the '.vfs.' marker distinguishes it from
upstream Git. GitVersion parsing stops at the non-integer 'vfs'
component, so a simple numeric comparison would treat this as
2.53.0 and disable caching. We need an additional check that
recognizes VFS builds and compares their suffix version.
The base version (2.53.0) and VFS suffix (0.1) are checked
separately, allowing any future 2.53+ VFS build with the fix
to also benefit. Upstream 2.54.0+ continues to pass the existing
numeric check without hitting the VFS path.
Implementation:
Added SupportsConfigListType() helper that first checks the
upstream minimum (2.54.0), then looks for '.vfs.' in the original
version string. For VFS builds, it parses the base version and
VFS suffix independently and checks both against their respective
minimums (2.53.0 and 0.1).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 2d2658e commit a34a5ce
File tree
1 file changed
+31
-3
lines changed1 file changed
+31
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
| 328 | + | |
327 | 329 | | |
328 | 330 | | |
329 | 331 | | |
| |||
342 | 344 | | |
343 | 345 | | |
344 | 346 | | |
345 | | - | |
346 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
347 | 350 | | |
348 | | - | |
| 351 | + | |
349 | 352 | | |
350 | 353 | | |
351 | 354 | | |
352 | 355 | | |
353 | 356 | | |
354 | 357 | | |
355 | 358 | | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
356 | 384 | | |
357 | 385 | | |
358 | 386 | | |
| |||
0 commit comments