1#include "cache.h"
2#include "lockfile.h"
3#include "tree.h"
4#include "cache-tree.h"
56
static struct lock_file index_lock;
78
int main(int ac, char **av)
9{
10hold_locked_index(&index_lock, 1);
11if (read_cache() < 0)
12die("unable to read index file");
13active_cache_tree = NULL;
14if (write_locked_index(&the_index, &index_lock, COMMIT_LOCK))
15die("unable to write index file");
16return 0;
17}