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

Function commit_compare

commit-graph.c:2399–2404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2397}
2398
2399static int commit_compare(const void *_a, const void *_b)
2400{
2401 const struct commit *a = *(const struct commit **)_a;
2402 const struct commit *b = *(const struct commit **)_b;
2403 return oidcmp(&a->object.oid, &b->object.oid);
2404}
2405
2406static void sort_and_scan_merged_commits(struct write_commit_graph_context *ctx)
2407{

Callers

nothing calls this directly

Calls 1

oidcmpFunction · 0.85

Tested by

no test coverage detected