| 1563 | } |
| 1564 | |
| 1565 | int commit_tree(const char *msg, size_t msg_len, const struct object_id *tree, |
| 1566 | const struct commit_list *parents, struct object_id *ret, |
| 1567 | const char *author, const char *sign_commit) |
| 1568 | { |
| 1569 | struct commit_extra_header *extra = NULL, **tail = &extra; |
| 1570 | int result; |
| 1571 | |
| 1572 | append_merge_tag_headers(parents, &tail); |
| 1573 | result = commit_tree_extended(msg, msg_len, tree, parents, ret, author, |
| 1574 | NULL, sign_commit, extra); |
| 1575 | free_commit_extra_headers(extra); |
| 1576 | return result; |
| 1577 | } |
| 1578 | |
| 1579 | static bool has_invalid_utf8(const char *buf, size_t len, size_t *bad_offset) |
| 1580 | { |
no test coverage detected