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

Function clear_shallow_info

shallow.c:547–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547void clear_shallow_info(struct shallow_info *info)
548{
549 if (info->used_shallow) {
550 for (size_t i = 0; i < info->shallow->nr; i++)
551 free(info->used_shallow[i]);
552 free(info->used_shallow);
553 }
554
555 free(info->need_reachability_test);
556 free(info->reachable);
557 free(info->shallow_ref);
558 free(info->ours);
559 free(info->theirs);
560 commit_stack_clear(&info->commits);
561}
562
563/* Step 4, remove non-existent ones in "theirs" after getting the pack */
564

Callers 2

fetch_packFunction · 0.85
cmd_receive_packFunction · 0.85

Calls 1

commit_stack_clearFunction · 0.85

Tested by

no test coverage detected