4 int cmd_main(int argc, const char **argv)
6 struct lock_file index_lock = LOCK_INIT;
9 cnt = strtol(argv[1], NULL, 0);
10 setup_git_directory();
12 for (i = 0; i < cnt; i++) {
13 hold_locked_index(&index_lock, LOCK_DIE_ON_ERROR);
14 if (write_locked_index(&the_index, &index_lock, COMMIT_LOCK))
15 die("unable to write index file");