| 339 | } |
| 340 | |
| 341 | static void refresh_cache_or_die(int refresh_flags) |
| 342 | { |
| 343 | /* |
| 344 | * refresh_flags contains REFRESH_QUIET, so the only errors |
| 345 | * are for unmerged entries. |
| 346 | */ |
| 347 | if (refresh_index(the_repository->index, refresh_flags | REFRESH_IN_PORCELAIN, NULL, NULL, NULL)) |
| 348 | die_resolve_conflict("commit"); |
| 349 | } |
| 350 | |
| 351 | static const char *prepare_index(const char **argv, const char *prefix, |
| 352 | const struct commit *current_head, int is_status) |
no test coverage detected