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

Function get_one_line

pretty.c:227–240  ·  view source on GitHub ↗

* Generic support for pretty-printing the header */

Source from the content-addressed store, hash-verified

225 * Generic support for pretty-printing the header
226 */
227static int get_one_line(const char *msg)
228{
229 int ret = 0;
230
231 for (;;) {
232 char c = *msg++;
233 if (!c)
234 break;
235 ret++;
236 if (c == '\n')
237 break;
238 }
239 return ret;
240}
241
242/* High bit set, or ISO-2022-INT */
243static int non_ascii(int ch)

Callers 4

skip_blank_linesFunction · 0.85
format_subjectFunction · 0.85
pp_headerFunction · 0.85
pp_remainderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected