Skip to content
Permalink
Browse files

fixup! checkout.c: enable fscache for checkout again

These changes are needed to make Git build with DEVELOPER=1 again.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information...
dscho committed Feb 27, 2018
1 parent 07867ae commit b884481d266f277634028719961fae85208bac86
Showing with 3 additions and 3 deletions.
  1. +1 −1 compat/win32/fscache.c
  2. +1 −1 compat/win32/fscache.h
  3. +1 −1 entry.c
@@ -414,7 +414,7 @@ int fscache_enable(int enable)
/*
* Flush cached stats result when fscache is enabled.
*/
void fscache_flush()
void fscache_flush(void)
{
if (enabled) {
EnterCriticalSection(&mutex);
@@ -7,7 +7,7 @@ int fscache_enable(int enable);
int fscache_enabled(const char *path);
#define is_fscache_enabled(path) fscache_enabled(path)

void fscache_flush();
void fscache_flush(void);
#define flush_fscache() fscache_flush()

DIR *fscache_opendir(const char *dir);
@@ -366,7 +366,7 @@ static int write_entry(struct cache_entry *ce,
}

finish:
// Flush cached lstat in fscache after writing disk.
/* Flush cached lstat in fscache after writing to disk. */
flush_fscache();

if (state->refresh_cache) {

0 comments on commit b884481

Please sign in to comment.
You can’t perform that action at this time.