if (ce_flush(&c, newfd, istate->oid.hash))
return -1;
if (close_tempfile_gently(tempfile)) {
if (ce_flush(&c, newfd, istate->oid.hash))
return -1;
if (close_tempfile_gently(tempfile)) {
* that is associated with the given "istate".
*/
trace2_region_enter_printf("index", "do_write_index", the_repository,
* that is associated with the given "istate".
*/
trace2_region_enter_printf("index", "do_write_index", the_repository,
ret = do_write_index(istate, lock->tempfile, 0);
trace2_region_leave_printf("index", "do_write_index", the_repository,
ret = do_write_index(istate, lock->tempfile, 0);
trace2_region_leave_printf("index", "do_write_index", the_repository,
move_cache_to_base_index(istate);
trace2_region_enter_printf("index", "shared/do_write_index",
move_cache_to_base_index(istate);
trace2_region_enter_printf("index", "shared/do_write_index",
ret = do_write_index(si->base, *temp, 1);
trace2_region_leave_printf("index", "shared/do_write_index",
ret = do_write_index(si->base, *temp, 1);
trace2_region_leave_printf("index", "shared/do_write_index",