MCPcopy Create free account
hub / github.com/git/git / mark_recent_complete_commits

Function mark_recent_complete_commits

fetch-pack.c:662–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660}
661
662static void mark_recent_complete_commits(struct fetch_pack_args *args,
663 timestamp_t cutoff)
664{
665 while (complete.nr) {
666 struct commit *item = prio_queue_peek(&complete);
667 if (item->date < cutoff)
668 break;
669 print_verbose(args, _("Marking %s as complete"),
670 oid_to_hex(&item->object.oid));
671 pop_most_recent_commit(&complete, COMPLETE);
672 }
673}
674
675static void add_refs_to_oidset(struct oidset *oids, struct ref *refs)
676{

Callers 1

Calls 4

prio_queue_peekFunction · 0.85
print_verboseFunction · 0.85
oid_to_hexFunction · 0.85
pop_most_recent_commitFunction · 0.85

Tested by

no test coverage detected