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

Function prepare_packed_git_one

packfile.c:1028–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1026}
1027
1028static void prepare_packed_git_one(struct odb_source *source)
1029{
1030 struct string_list garbage = STRING_LIST_INIT_DUP;
1031 struct prepare_pack_data data = {
1032 .source = source,
1033 .garbage = &garbage,
1034 };
1035
1036 for_each_file_in_pack_dir(source->path, prepare_pack, &data);
1037
1038 report_pack_garbage(data.garbage);
1039 string_list_clear(data.garbage, 0);
1040}
1041
1042DEFINE_LIST_SORT(static, sort_packs, struct packfile_list_entry, next);
1043

Callers 1

packfile_store_prepareFunction · 0.85

Calls 3

string_list_clearFunction · 0.85
report_pack_garbageFunction · 0.70

Tested by

no test coverage detected