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

Function compare_commit_dist

bisect.c:216–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214};
215
216static int compare_commit_dist(const void *a_, const void *b_)
217{
218 struct commit_dist *a, *b;
219
220 a = (struct commit_dist *)a_;
221 b = (struct commit_dist *)b_;
222 if (a->distance != b->distance)
223 return b->distance - a->distance; /* desc sort */
224 return oidcmp(&a->commit->object.oid, &b->commit->object.oid);
225}
226
227static struct commit_list *best_bisection_sorted(struct commit_list *list, int nr)
228{

Callers

nothing calls this directly

Calls 1

oidcmpFunction · 0.85

Tested by

no test coverage detected