diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-01-25 17:13:34 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-25 17:13:34 -0800 |
commit | 0990e7aaaa63ca908dbdfc379af132068e4b066f (patch) | |
tree | db4ecb6c21e8949a7735201f0fbfe0bcc25ed784 /cache.h | |
parent | 9847a524321afbfa6dbb08bfd9b6a0746f965578 (diff) | |
parent | bda6eb0da9b4e4e763b531c83cab9fd9f85934ff (diff) | |
download | git-0990e7aaaa63ca908dbdfc379af132068e4b066f.tar.gz git-0990e7aaaa63ca908dbdfc379af132068e4b066f.tar.xz |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |