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

Function check_old_for_crlf

apply.c:1716–1722  ·  view source on GitHub ↗

* Check if the patch has context lines with CRLF or * the patch wants to remove lines with CRLF. */

Source from the content-addressed store, hash-verified

1714 * the patch wants to remove lines with CRLF.
1715 */
1716static void check_old_for_crlf(struct patch *patch, const char *line, int len)
1717{
1718 if (len >= 2 && line[len-1] == '\n' && line[len-2] == '\r') {
1719 patch->ws_rule |= WS_CR_AT_EOL;
1720 patch->crlf_in_old = 1;
1721 }
1722}
1723
1724
1725/*

Callers 1

parse_fragmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected