File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 2
2
#include "../../hashmap.h"
3
3
#include "../win32.h"
4
4
#include "fscache.h"
5
+ #include "config.h"
5
6
6
7
static int initialized ;
7
8
static volatile long enabled ;
@@ -396,7 +397,11 @@ int fscache_enable(int enable)
396
397
int result ;
397
398
398
399
if (!initialized ) {
400
+ int fscache = git_env_bool ("GIT_TEST_FSCACHE" , -1 );
401
+
399
402
/* allow the cache to be disabled entirely */
403
+ if (fscache != -1 )
404
+ core_fscache = fscache ;
400
405
if (!core_fscache )
401
406
return 0 ;
402
407
Original file line number Diff line number Diff line change @@ -448,6 +448,9 @@ GIT_TEST_CHECKOUT_WORKERS=<n> overrides the 'checkout.workers' setting
448
448
to <n> and 'checkout.thresholdForParallelism' to 0, forcing the
449
449
execution of the parallel-checkout code.
450
450
451
+ GIT_TEST_FSCACHE=<boolean> exercises the uncommon fscache code path
452
+ which adds a cache below mingw's lstat and dirent implementations.
453
+
451
454
Naming Tests
452
455
------------
453
456
You can’t perform that action at this time.
0 commit comments