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

Function add_extra_header

commit.c:1451–1459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1449}
1450
1451static void add_extra_header(struct strbuf *buffer,
1452 const struct commit_extra_header *extra)
1453{
1454 strbuf_addstr(buffer, extra->key);
1455 if (extra->len)
1456 strbuf_add_lines(buffer, " ", extra->value, extra->len);
1457 else
1458 strbuf_addch(buffer, '\n');
1459}
1460
1461struct commit_extra_header *read_commit_extra_headers(struct commit *commit,
1462 const char **exclude)

Callers 1

write_commit_treeFunction · 0.85

Calls 3

strbuf_addstrFunction · 0.85
strbuf_add_linesFunction · 0.85
strbuf_addchFunction · 0.85

Tested by

no test coverage detected