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

Function new_blank_line_at_eof

diff.c:1685–1694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1683}
1684
1685static int new_blank_line_at_eof(struct emit_callback *ecbdata, const char *line, int len)
1686{
1687 if (!((ecbdata->ws_rule & WS_BLANK_AT_EOF) &&
1688 ecbdata->blank_at_eof_in_preimage &&
1689 ecbdata->blank_at_eof_in_postimage &&
1690 ecbdata->blank_at_eof_in_preimage <= ecbdata->lno_in_preimage &&
1691 ecbdata->blank_at_eof_in_postimage <= ecbdata->lno_in_postimage))
1692 return 0;
1693 return ws_blank_line(line, len);
1694}
1695
1696static void emit_add_line(struct emit_callback *ecbdata,
1697 const char *line, int len)

Callers 1

emit_add_lineFunction · 0.85

Calls 1

ws_blank_lineFunction · 0.85

Tested by

no test coverage detected