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

Function emit_add_line

diff.c:1696–1704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1694}
1695
1696static void emit_add_line(struct emit_callback *ecbdata,
1697 const char *line, int len)
1698{
1699 unsigned flags = WSEH_NEW | ecbdata->ws_rule;
1700 if (new_blank_line_at_eof(ecbdata, line, len))
1701 flags |= DIFF_SYMBOL_CONTENT_BLANK_LINE_EOF;
1702
1703 emit_diff_symbol(ecbdata->opt, DIFF_SYMBOL_PLUS, line, len, flags);
1704}
1705
1706static void emit_del_line(struct emit_callback *ecbdata,
1707 const char *line, int len)

Callers 2

emit_rewrite_linesFunction · 0.85
fn_out_consumeFunction · 0.85

Calls 2

new_blank_line_at_eofFunction · 0.85
emit_diff_symbolFunction · 0.85

Tested by

no test coverage detected