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

Function get_author

replay.c:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47static char *get_author(const char *message)
48{
49 size_t len;
50 const char *a;
51
52 a = find_commit_header(message, "author", &len);
53 if (a)
54 return xmemdupz(a, len);
55
56 return NULL;
57}
58
59static void generate_revert_message(struct strbuf *msg,
60 struct commit *commit,

Callers 1

create_commitFunction · 0.70

Calls 2

find_commit_headerFunction · 0.85
xmemdupzFunction · 0.85

Tested by

no test coverage detected