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

Function commit_subject_length

commit.c:693–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693size_t commit_subject_length(const char *body)
694{
695 const char *p = body;
696 while (*p) {
697 const char *next = skip_blank_lines(p);
698 if (next != p)
699 break;
700 p = strchrnul(p, '\n');
701 if (*p)
702 p++;
703 }
704 return p - body;
705}
706
707struct commit_list *commit_list_insert(struct commit *item, struct commit_list **list_p)
708{

Callers 2

append_squash_messageFunction · 0.85
cmd_commitFunction · 0.85

Calls 1

skip_blank_linesFunction · 0.85

Tested by

no test coverage detected