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

Function lookup_commit_graft

commit.c:332–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332struct commit_graft *lookup_commit_graft(struct repository *r, const struct object_id *oid)
333{
334 int pos;
335 prepare_commit_graft(r);
336 pos = commit_graft_pos(r, oid);
337 if (pos < 0)
338 return NULL;
339 return r->parsed_objects->grafts[pos];
340}
341
342int for_each_commit_graft(each_commit_graft_fn fn, void *cb_data)
343{

Callers 3

get_shallows_or_depthFunction · 0.85
prepare_shallow_infoFunction · 0.85
parse_commit_bufferFunction · 0.85

Calls 2

prepare_commit_graftFunction · 0.85
commit_graft_posFunction · 0.85

Tested by

no test coverage detected