MCPcopy Create free account
hub / github.com/git/git / checkout_target

Function checkout_target

apply.c:3485–3496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3483}
3484
3485static 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
3498static struct patch *previous_patch(struct apply_state *state,
3499 struct patch *patch,

Callers 2

load_currentFunction · 0.85
check_preimageFunction · 0.85

Calls 2

checkout_entryFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected