mirror of
https://github.com/git-for-windows/git.git
synced 2026-05-19 10:24:30 -05:00
fscache: add GIT_TEST_FSCACHE support
Add support to fscache to enable running the entire test suite with the fscache enabled. Signed-off-by: Ben Peart <benpeart@microsoft.com>
This commit is contained in:
committed by
Johannes Schindelin
parent
325a9888f6
commit
2c288b316b
@@ -5,6 +5,7 @@
|
||||
#include "../../dir.h"
|
||||
#include "../../abspath.h"
|
||||
#include "../../trace.h"
|
||||
#include "config.h"
|
||||
|
||||
static int initialized;
|
||||
static volatile long enabled;
|
||||
@@ -408,7 +409,11 @@ int fscache_enable(int enable)
|
||||
int result;
|
||||
|
||||
if (!initialized) {
|
||||
int fscache = git_env_bool("GIT_TEST_FSCACHE", -1);
|
||||
|
||||
/* allow the cache to be disabled entirely */
|
||||
if (fscache != -1)
|
||||
core_fscache = fscache;
|
||||
if (!core_fscache)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user