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

Function prepare_fn_table

apply.c:3470–3483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3468}
3469
3470static 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
3485static int checkout_target(struct index_state *istate,
3486 struct cache_entry *ce, struct stat *st)

Callers 1

check_patch_listFunction · 0.85

Calls 1

string_list_insertFunction · 0.85

Tested by

no test coverage detected