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

Function free_diff_words_data

diff.c:2376–2392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2374}
2375
2376static void free_diff_words_data(struct emit_callback *ecbdata)
2377{
2378 if (ecbdata->diff_words) {
2379 diff_words_flush(ecbdata);
2380 free_emitted_diff_symbols(ecbdata->diff_words->opt->emitted_symbols);
2381 free (ecbdata->diff_words->opt);
2382 free (ecbdata->diff_words->minus.text.ptr);
2383 free (ecbdata->diff_words->minus.orig);
2384 free (ecbdata->diff_words->plus.text.ptr);
2385 free (ecbdata->diff_words->plus.orig);
2386 if (ecbdata->diff_words->word_regex) {
2387 regfree(ecbdata->diff_words->word_regex);
2388 free(ecbdata->diff_words->word_regex);
2389 }
2390 FREE_AND_NULL(ecbdata->diff_words);
2391 }
2392}
2393
2394const char *diff_get_color(enum git_colorbool diff_use_color, enum color_diff ix)
2395{

Callers 1

builtin_diffFunction · 0.85

Calls 3

diff_words_flushFunction · 0.85
regfreeFunction · 0.85

Tested by

no test coverage detected