summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorKjetil Barvik <barvik@broadpark.no>2009-01-18 16:14:53 +0100
committerJunio C Hamano <gitster@pobox.com>2009-01-18 13:58:31 -0800
commitaeabab5c712d5acae4a2836272d641acbb87b893 (patch)
treee9f841e9c13ee1b92da97143fca8063a82213845 /cache.h
parentbad4a54fa6fe8a9bbdfb5c3e413268eefde69b75 (diff)
downloadgit-aeabab5c712d5acae4a2836272d641acbb87b893.tar.gz
lstat_cache(): introduce invalidate_lstat_cache() function
In some cases it could maybe be necessary to say to the cache that "Hey, I deleted/changed the type of this pathname and if you currently have it inside your cache, you should deleted it". This patch introduce a function which support this. Signed-off-by: Kjetil Barvik <barvik@broadpark.no> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 7c8c8e4842..f4452a89a7 100644
--- a/cache.h
+++ b/cache.h
@@ -722,6 +722,7 @@ extern int checkout_entry(struct cache_entry *ce, const struct checkout *state,
extern int has_symlink_leading_path(int len, const char *name);
extern int has_symlink_or_noent_leading_path(int len, const char *name);
extern int has_dirs_only_path(int len, const char *name, int prefix_len);
+extern void invalidate_lstat_cache(int len, const char *name);
extern struct alternate_object_database {
struct alternate_object_database *next;