| 644 | static struct prio_queue complete = { compare_commits_by_commit_date }; |
| 645 | |
| 646 | static int mark_complete(const struct object_id *oid) |
| 647 | { |
| 648 | struct commit *commit = deref_without_lazy_fetch(oid, 1); |
| 649 | |
| 650 | if (commit && !(commit->object.flags & COMPLETE)) { |
| 651 | commit->object.flags |= COMPLETE; |
| 652 | prio_queue_put(&complete, commit); |
| 653 | } |
| 654 | return 0; |
| 655 | } |
| 656 | |
| 657 | static int mark_complete_oid(const struct reference *ref, void *cb_data UNUSED) |
| 658 | { |
no test coverage detected