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 ;
@@ -393,7 +394,11 @@ int fscache_enable(int enable)
393
394
int result ;
394
395
395
396
if (!initialized ) {
397
+ int fscache = git_env_bool ("GIT_TEST_FSCACHE" , -1 );
398
+
396
399
/* allow the cache to be disabled entirely */
400
+ if (fscache != -1 )
401
+ core_fscache = fscache ;
397
402
if (!core_fscache )
398
403
return 0 ;
399
404
Original file line number Diff line number Diff line change @@ -429,6 +429,9 @@ GIT_TEST_CHECKOUT_WORKERS=<n> overrides the 'checkout.workers' setting
429
429
to <n> and 'checkout.thresholdForParallelism' to 0, forcing the
430
430
execution of the parallel-checkout code.
431
431
432
+ GIT_TEST_FSCACHE=<boolean> exercises the uncommon fscache code path
433
+ which adds a cache below mingw's lstat and dirent implementations.
434
+
432
435
Naming Tests
433
436
------------
434
437
You can’t perform that action at this time.
0 commit comments