mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-19 02:22:21 -05:00
Merge pull request #1911 from benpeart/git_test_fscache-gfw
fscache: add GIT_TEST_FSCACHE support
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "../../hashmap.h"
|
||||
#include "../win32.h"
|
||||
#include "fscache.h"
|
||||
#include "config.h"
|
||||
|
||||
static int initialized;
|
||||
static volatile long enabled;
|
||||
@@ -393,7 +394,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;
|
||||
|
||||
|
||||
3
t/README
3
t/README
@@ -439,6 +439,9 @@ GIT_TEST_DEFAULT_HASH=<hash-algo> specifies which hash algorithm to
|
||||
use in the test scripts. Recognized values for <hash-algo> are "sha1"
|
||||
and "sha256".
|
||||
|
||||
GIT_TEST_FSCACHE=<boolean> exercises the uncommon fscache code path
|
||||
which adds a cache below mingw's lstat and dirent implementations.
|
||||
|
||||
Naming Tests
|
||||
------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user