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

Function mark_complete

fetch-pack.c:646–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644static struct prio_queue complete = { compare_commits_by_commit_date };
645
646static 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
657static int mark_complete_oid(const struct reference *ref, void *cb_data UNUSED)
658{

Callers 2

mark_complete_oidFunction · 0.70
mark_alternate_completeFunction · 0.70

Calls 2

deref_without_lazy_fetchFunction · 0.85
prio_queue_putFunction · 0.85

Tested by

no test coverage detected