summaryrefslogtreecommitdiff
path: root/symlinks.c
diff options
context:
space:
mode:
authorKjetil Barvik <barvik@broadpark.no>2009-01-18 15:14:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-01-18 21:58:34 (GMT)
commitbda6eb0da9b4e4e763b531c83cab9fd9f85934ff (patch)
treeff65859c860fd844871a93536161cab7194c1360 /symlinks.c
parentaeabab5c712d5acae4a2836272d641acbb87b893 (diff)
downloadgit-bda6eb0da9b4e4e763b531c83cab9fd9f85934ff.zip
git-bda6eb0da9b4e4e763b531c83cab9fd9f85934ff.tar.gz
git-bda6eb0da9b4e4e763b531c83cab9fd9f85934ff.tar.bz2
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>
Diffstat (limited to 'symlinks.c')
-rw-r--r--symlinks.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/symlinks.c b/symlinks.c
index 31ddbc9..f262b7c 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
/*