| 2397 | } |
| 2398 | |
| 2399 | static 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 | |
| 2406 | static void sort_and_scan_merged_commits(struct write_commit_graph_context *ctx) |
| 2407 | { |