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

Function parse_commit_message

pretty.c:1000–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998}
999
1000static void parse_commit_message(struct format_commit_context *c)
1001{
1002 const char *msg = c->message + c->message_off;
1003 const char *start = c->message;
1004
1005 msg = skip_blank_lines(msg);
1006 c->subject_off = msg - start;
1007
1008 msg = format_subject(NULL, msg, NULL);
1009 msg = skip_blank_lines(msg);
1010 c->body_off = msg - start;
1011
1012 c->commit_message_parsed = 1;
1013}
1014
1015static void strbuf_wrap(struct strbuf *sb, size_t pos,
1016 size_t width, size_t indent1, size_t indent2)

Callers 1

format_commit_oneFunction · 0.85

Calls 2

skip_blank_linesFunction · 0.85
format_subjectFunction · 0.85

Tested by

no test coverage detected