MCPcopy Create free account
hub / github.com/git/git / process_object

Function process_object

builtin/describe.c:551–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551static 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
566static void describe_blob(const struct object_id *oid, struct strbuf *dst)
567{

Callers

nothing calls this directly

Calls 5

oideqFunction · 0.85
reset_revision_walkFunction · 0.85
describe_commitFunction · 0.85
strbuf_addfFunction · 0.85
commit_list_freeFunction · 0.85

Tested by

no test coverage detected