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

Function commit_tree

commit.c:1565–1577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1563}
1564
1565int 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
1579static bool has_invalid_utf8(const char *buf, size_t len, size_t *bad_offset)
1580{

Callers 9

do_resetFunction · 0.85
notes_cache_writeFunction · 0.85
create_notes_commitFunction · 0.85
cmd_commit_treeFunction · 0.85
cmd_rebaseFunction · 0.85
save_untracked_filesFunction · 0.85
do_create_stashFunction · 0.85
merge_trivialFunction · 0.85
finish_automergeFunction · 0.85

Calls 3

append_merge_tag_headersFunction · 0.85
commit_tree_extendedFunction · 0.85

Tested by

no test coverage detected