X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=cache.h;fp=cache.h;h=8c9947ef49846151fe4b25e6c472864bfa7d9f71;hb=1af1c2b63db6a413fbeb9b08cd55dcb735d7597d;hp=69801b02d535dbbe49535c876979cd093c6db2e1;hpb=e64961b0573b0e72bd55eab6d36bd97f859f9516;p=git.git diff --git a/cache.h b/cache.h index 69801b02..8c9947ef 100644 --- a/cache.h +++ b/cache.h @@ -138,8 +138,11 @@ extern const char *prefix_filename(const char *prefix, int len, const char *path #define alloc_nr(x) (((x)+16)*3/2) /* Initialize and use the cache information */ +extern int read_cache_1(unsigned char *); +extern int write_cache_1(int, struct cache_entry **, int, unsigned char *); extern int read_cache(void); -extern int write_cache(int newfd, struct cache_entry **cache, int entries); +extern int write_cache(int, struct cache_entry **, int); + extern int cache_name_pos(const char *name, int namelen); #define ADD_CACHE_OK_TO_ADD 1 /* Ok to add */ #define ADD_CACHE_OK_TO_REPLACE 2 /* Ok to replace file/directory */