| 3468 | } |
| 3469 | |
| 3470 | static void prepare_fn_table(struct apply_state *state, struct patch *patch) |
| 3471 | { |
| 3472 | /* |
| 3473 | * store information about incoming file deletion |
| 3474 | */ |
| 3475 | while (patch) { |
| 3476 | if ((patch->new_name == NULL) || (patch->is_rename)) { |
| 3477 | struct string_list_item *item; |
| 3478 | item = string_list_insert(&state->fn_table, patch->old_name); |
| 3479 | item->util = PATH_TO_BE_DELETED; |
| 3480 | } |
| 3481 | patch = patch->next; |
| 3482 | } |
| 3483 | } |
| 3484 | |
| 3485 | static int checkout_target(struct index_state *istate, |
| 3486 | struct cache_entry *ce, struct stat *st) |
no test coverage detected