4 #include "cache-tree.h"
6 static struct lock_file index_lock
;
8 int cmd_main(int ac
, const char **av
)
10 setup_git_directory();
11 hold_locked_index(&index_lock
, LOCK_DIE_ON_ERROR
);
13 die("unable to read index file");
14 active_cache_tree
= NULL
;
15 if (write_locked_index(&the_index
, &index_lock
, COMMIT_LOCK
))
16 die("unable to write index file");