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

Function get_header

pretty.c:670–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668}
669
670static char *get_header(const char *msg, const char *key)
671{
672 size_t len;
673 const char *v = find_commit_header(msg, key, &len);
674 return v ? xmemdupz(v, len) : NULL;
675}
676
677static char *replace_encoding_header(char *buf, const char *encoding)
678{

Callers 1

repo_logmsg_reencodeFunction · 0.70

Calls 2

find_commit_headerFunction · 0.85
xmemdupzFunction · 0.85

Tested by

no test coverage detected