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

Function prepare_commit_graft

commit.c:316–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316void prepare_commit_graft(struct repository *r)
317{
318 const char *graft_file;
319
320 if (r->parsed_objects->commit_graft_prepared)
321 return;
322 if (!startup_info->have_repository)
323 return;
324
325 graft_file = repo_get_graft_file(r);
326 read_graft_file(r, graft_file);
327 /* make sure shallows are read */
328 is_repository_shallow(r);
329 r->parsed_objects->commit_graft_prepared = 1;
330}
331
332struct commit_graft *lookup_commit_graft(struct repository *r, const struct object_id *oid)
333{

Callers 2

commit_graph_compatibleFunction · 0.85
lookup_commit_graftFunction · 0.85

Calls 3

repo_get_graft_fileFunction · 0.85
read_graft_fileFunction · 0.85
is_repository_shallowFunction · 0.85

Tested by

no test coverage detected