From bda6eb0da9b4e4e763b531c83cab9fd9f85934ff Mon Sep 17 00:00:00 2001 From: Kjetil Barvik Date: Sun, 18 Jan 2009 16:14:54 +0100 Subject: 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 Signed-off-by: Junio C Hamano --- symlinks.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'symlinks.c') diff --git a/symlinks.c b/symlinks.c index 31ddbc9e96..f262b7c44b 100644 --- a/symlinks.c +++ b/symlinks.c @@ -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 /* -- cgit v1.2.1