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

Function is_mboxrd_from

pretty.c:2244–2252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2242}
2243
2244static int is_mboxrd_from(const char *line, int len)
2245{
2246 /*
2247 * a line matching /^From $/ here would only have len == 4
2248 * at this point because is_empty_line would've trimmed all
2249 * trailing space
2250 */
2251 return len > 4 && starts_with(line + strspn(line, ">"), "From ");
2252}
2253
2254void pp_remainder(struct pretty_print_context *pp,
2255 const char **msg_p,

Callers 1

pp_remainderFunction · 0.85

Calls 1

starts_withFunction · 0.85

Tested by

no test coverage detected