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

Function last_line_length

pretty.c:291–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291static int last_line_length(struct strbuf *sb)
292{
293 int i;
294
295 /* How many bytes are already used on the last line? */
296 for (i = sb->len - 1; i >= 0; i--)
297 if (sb->buf[i] == '\n')
298 break;
299 return sb->len - (i + 1);
300}
301
302static void add_rfc822_quoted(struct strbuf *out, const char *s, int len)
303{

Callers 3

add_rfc2047Function · 0.85
pp_user_infoFunction · 0.85
pp_email_subjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected