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

Function in_commit_list

commit-reach.c:750–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748};
749
750static int in_commit_list(const struct commit_list *want, struct commit *c)
751{
752 for (; want; want = want->next)
753 if (oideq(&want->item->object.oid, &c->object.oid))
754 return 1;
755 return 0;
756}
757
758/*
759 * Test whether the candidate is contained in the list.

Callers 1

contains_testFunction · 0.85

Calls 1

oideqFunction · 0.85

Tested by

no test coverage detected