| 3483 | } |
| 3484 | |
| 3485 | static int checkout_target(struct index_state *istate, |
| 3486 | struct cache_entry *ce, struct stat *st) |
| 3487 | { |
| 3488 | struct checkout costate = CHECKOUT_INIT; |
| 3489 | |
| 3490 | costate.refresh_cache = 1; |
| 3491 | costate.istate = istate; |
| 3492 | if (checkout_entry(ce, &costate, NULL, NULL) || |
| 3493 | lstat(ce->name, st)) |
| 3494 | return error(_("cannot checkout %s"), ce->name); |
| 3495 | return 0; |
| 3496 | } |
| 3497 | |
| 3498 | static struct patch *previous_patch(struct apply_state *state, |
| 3499 | struct patch *patch, |
no test coverage detected