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

Function clear_apply_state

apply.c:137–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137void clear_apply_state(struct apply_state *state)
138{
139 string_list_clear(&state->limit_by_name, 0);
140 strset_clear(&state->removed_symlinks);
141 strset_clear(&state->kept_symlinks);
142 strbuf_release(&state->root);
143 FREE_AND_NULL(state->fake_ancestor);
144
145 /* &state->fn_table is cleared at the end of apply_patch() */
146}
147
148static void mute_routine(const char *msg UNUSED, va_list params UNUSED)
149{

Callers 2

run_applyFunction · 0.85
cmd_applyFunction · 0.85

Calls 3

string_list_clearFunction · 0.85
strset_clearFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected