lstat_cache(): introduce clear_lstat_cache() function
If you want to completely clear the contents of the lstat_cache(), then call this new function. Signed-off-by: Kjetil Barvik <barvik@broadpark.no> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
aeabab5c71
commit
bda6eb0da9
@ -195,6 +195,14 @@ void invalidate_lstat_cache(int len, const char *name)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Completely clear the contents of the cache
|
||||
*/
|
||||
void clear_lstat_cache(void)
|
||||
{
|
||||
reset_lstat_cache(0, 0);
|
||||
}
|
||||
|
||||
#define USE_ONLY_LSTAT 0
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user