summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-01-26 01:13:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-01-26 01:13:34 (GMT)
commit0990e7aaaa63ca908dbdfc379af132068e4b066f (patch)
treedb4ecb6c21e8949a7735201f0fbfe0bcc25ed784 /cache.h
parent9847a524321afbfa6dbb08bfd9b6a0746f965578 (diff)
parentbda6eb0da9b4e4e763b531c83cab9fd9f85934ff (diff)
downloadgit-0990e7aaaa63ca908dbdfc379af132068e4b066f.zip
git-0990e7aaaa63ca908dbdfc379af132068e4b066f.tar.gz
git-0990e7aaaa63ca908dbdfc379af132068e4b066f.tar.bz2
Merge branch 'kb/lstat-cache'
* kb/lstat-cache: lstat_cache(): introduce clear_lstat_cache() function lstat_cache(): introduce invalidate_lstat_cache() function lstat_cache(): introduce has_dirs_only_path() function lstat_cache(): introduce has_symlink_or_noent_leading_path() function lstat_cache(): more cache effective symlink/directory detection
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index c96854a..c17fbf5 100644
--- a/cache.h
+++ b/cache.h
@@ -721,6 +721,10 @@ struct checkout {
extern int checkout_entry(struct cache_entry *ce, const struct checkout *state, char *topath);
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 void clear_lstat_cache(void);
extern struct alternate_object_database {
struct alternate_object_database *next;