index: make the index file format extensible.

... and move the cache-tree data into it.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano
2006-04-24 21:18:58 -07:00
parent dd0c34c46b
commit bad68ec924
10 changed files with 146 additions and 149 deletions

View File

@ -9,6 +9,7 @@
#include "object.h"
#include "tree.h"
#include "cache-tree.h"
#include <sys/time.h>
#include <signal.h>
@ -828,6 +829,7 @@ int main(int argc, char **argv)
}
unpack_trees(fn);
cache_tree_free(&active_cache_tree);
if (write_cache(newfd, active_cache, active_nr) ||
commit_index_file(&cache_file))
die("unable to write new index file");