diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-24 21:18:58 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-24 21:24:13 -0700 |
commit | bad68ec92410cf47dd001aa9b95d0f24c5f4bf77 (patch) | |
tree | 9c3ef1388867852e706dbf9a4ba9cc6a8ec15bfe /cache.h | |
parent | dd0c34c46bdda0c20fd92d00516e711a4c9f7837 (diff) | |
download | git-bad68ec92410cf47dd001aa9b95d0f24c5f4bf77.tar.gz git-bad68ec92410cf47dd001aa9b95d0f24c5f4bf77.tar.xz |
index: make the index file format extensible.
... and move the cache-tree data into it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -114,6 +114,7 @@ static inline unsigned int create_ce_mode(unsigned int mode) extern struct cache_entry **active_cache; extern unsigned int active_nr, active_alloc, active_cache_changed; +extern struct cache_tree *active_cache_tree; #define GIT_DIR_ENVIRONMENT "GIT_DIR" #define DEFAULT_GIT_DIR_ENVIRONMENT ".git" @@ -138,11 +139,8 @@ 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, struct cache_entry **, int); - +extern int write_cache(int newfd, struct cache_entry **cache, int entries); 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 */ |