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

Function unparse_commit

commit.c:209–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void unparse_commit(struct repository *r, const struct object_id *oid)
210{
211 struct commit *c = lookup_commit(r, oid);
212
213 if (!c->object.parsed)
214 return;
215 commit_list_free(c->parents);
216 c->parents = NULL;
217 c->object.parsed = 0;
218}
219
220int register_commit_graft(struct repository *r, struct commit_graft *graft,
221 int ignore_dups)

Calls 2

lookup_commitFunction · 0.85
commit_list_freeFunction · 0.85

Tested by

no test coverage detected