MCPcopy Create free account
hub / github.com/git/git / append_parent

Function append_parent

blame.c:133–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133static struct commit_list **append_parent(struct repository *r,
134 struct commit_list **tail,
135 const struct object_id *oid)
136{
137 struct commit *parent;
138
139 parent = lookup_commit_reference(r, oid);
140 if (!parent)
141 die("no such commit %s", oid_to_hex(oid));
142 return &commit_list_insert(parent, tail)->next;
143}
144
145static void append_merge_parents(struct repository *r,
146 struct commit_list **tail)

Callers 2

append_merge_parentsFunction · 0.85
fake_working_tree_commitFunction · 0.85

Calls 4

lookup_commit_referenceFunction · 0.85
oid_to_hexFunction · 0.85
commit_list_insertFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected