| 549 | } |
| 550 | |
| 551 | static void process_object(struct object *obj, const char *path, void *data) |
| 552 | { |
| 553 | struct process_commit_data *pcd = data; |
| 554 | |
| 555 | if (oideq(pcd->looking_for, &obj->oid) && !pcd->dst->len) { |
| 556 | reset_revision_walk(); |
| 557 | if (pcd->current_commit) { |
| 558 | describe_commit(pcd->current_commit, pcd->dst); |
| 559 | strbuf_addf(pcd->dst, ":%s", path); |
| 560 | } |
| 561 | commit_list_free(pcd->revs->commits); |
| 562 | pcd->revs->commits = NULL; |
| 563 | } |
| 564 | } |
| 565 | |
| 566 | static void describe_blob(const struct object_id *oid, struct strbuf *dst) |
| 567 | { |
nothing calls this directly
no test coverage detected