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

Function normalize_marker

add-patch.c:533–536  ·  view source on GitHub ↗

Empty context lines may omit the leading ' ' */

Source from the content-addressed store, hash-verified

531
532/* Empty context lines may omit the leading ' ' */
533static int normalize_marker(const char *p)
534{
535 return p[0] == '\n' || (p[0] == '\r' && p[1] == '\n') ? ' ' : p[0];
536}
537
538static int parse_diff(struct add_p_state *s, const struct pathspec *ps)
539{

Callers 4

parse_diffFunction · 0.85
merge_hunksFunction · 0.85
split_hunkFunction · 0.85
recount_edited_hunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected