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

Function check_whitespace

apply.c:1702–1710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1700}
1701
1702static void check_whitespace(struct apply_state *state,
1703 const char *line,
1704 int len,
1705 unsigned ws_rule)
1706{
1707 unsigned result = ws_check(line + 1, len - 1, ws_rule);
1708
1709 record_ws_error(state, result, line + 1, len - 2, state->linenr);
1710}
1711
1712/*
1713 * Check if the patch has context lines with CRLF or

Callers 1

parse_fragmentFunction · 0.85

Calls 2

ws_checkFunction · 0.85
record_ws_errorFunction · 0.85

Tested by

no test coverage detected