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

Function packfile_store_prepare

packfile.c:1071–1085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1069}
1070
1071void packfile_store_prepare(struct packfile_store *store)
1072{
1073 if (store->initialized)
1074 return;
1075
1076 prepare_multi_pack_index_one(store->source);
1077 prepare_packed_git_one(store->source);
1078
1079 sort_packs(&store->packs.head, sort_pack);
1080 for (struct packfile_list_entry *e = store->packs.head; e; e = e->next)
1081 if (!e->next)
1082 store->packs.tail = e;
1083
1084 store->initialized = true;
1085}
1086
1087void packfile_store_reprepare(struct packfile_store *store)
1088{

Callers 5

packfile_store_reprepareFunction · 0.85
packfile_store_get_packsFunction · 0.85
find_pack_entryFunction · 0.85
get_multi_pack_indexFunction · 0.85
cmd_grepFunction · 0.85

Calls 2

prepare_packed_git_oneFunction · 0.85

Tested by

no test coverage detected