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

Function add_p_state_clear

add-patch.c:405–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405static void add_p_state_clear(struct add_p_state *s)
406{
407 size_t i;
408
409 strbuf_release(&s->answer);
410 strbuf_release(&s->buf);
411 strbuf_release(&s->plain);
412 strbuf_release(&s->colored);
413 for (i = 0; i < s->file_diff_nr; i++)
414 free(s->file_diff[i].hunk);
415 free(s->file_diff);
416 interactive_config_clear(&s->cfg);
417}
418
419__attribute__((format (printf, 2, 3)))
420static void err(struct add_p_state *s, const char *fmt, ...)

Callers 2

run_add_pFunction · 0.85
run_add_p_indexFunction · 0.85

Calls 2

strbuf_releaseFunction · 0.85
interactive_config_clearFunction · 0.85

Tested by

no test coverage detected