| 314 | } |
| 315 | |
| 316 | void 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 | |
| 332 | struct commit_graft *lookup_commit_graft(struct repository *r, const struct object_id *oid) |
| 333 | { |
no test coverage detected