| 1449 | } |
| 1450 | |
| 1451 | static 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 | |
| 1461 | struct commit_extra_header *read_commit_extra_headers(struct commit *commit, |
| 1462 | const char **exclude) |
no test coverage detected