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

Function make_virtual_commit

merge-ort.c:5006–5016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5004}
5005
5006struct commit *make_virtual_commit(struct repository *repo,
5007 struct tree *tree,
5008 const char *comment)
5009{
5010 struct commit *commit = alloc_commit_node(repo);
5011
5012 set_merge_remote_desc(commit, comment, (struct object *)commit);
5013 set_commit_tree(commit, tree);
5014 commit->object.parsed = 1;
5015 return commit;
5016}
5017
5018static void merge_start(struct merge_options *opt, struct merge_result *result)
5019{

Callers 2

merge_ort_internalFunction · 0.85
get_refFunction · 0.85

Calls 3

alloc_commit_nodeFunction · 0.85
set_merge_remote_descFunction · 0.85
set_commit_treeFunction · 0.70

Tested by

no test coverage detected