MCPcopy Index your code
hub / github.com/git/git / append_emitted_diff_symbol

Function append_emitted_diff_symbol

diff.c:895–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

893#define EMITTED_DIFF_SYMBOLS_INIT { 0 }
894
895static void append_emitted_diff_symbol(struct diff_options *o,
896 struct emitted_diff_symbol *e)
897{
898 struct emitted_diff_symbol *f;
899
900 ALLOC_GROW(o->emitted_symbols->buf,
901 o->emitted_symbols->nr + 1,
902 o->emitted_symbols->alloc);
903 f = &o->emitted_symbols->buf[o->emitted_symbols->nr++];
904
905 memcpy(f, e, sizeof(struct emitted_diff_symbol));
906 f->line = e->line ? xmemdupz(e->line, e->len) : NULL;
907}
908
909static void free_emitted_diff_symbols(struct emitted_diff_symbols *e)
910{

Callers 2

emit_diff_symbolFunction · 0.85
diff_words_flushFunction · 0.85

Calls 1

xmemdupzFunction · 0.85

Tested by

no test coverage detected