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

Function find_pack_entry

packfile.c:2149–2170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2147}
2148
2149static int find_pack_entry(struct packfile_store *store,
2150 const struct object_id *oid,
2151 struct pack_entry *e)
2152{
2153 struct packfile_list_entry *l;
2154
2155 packfile_store_prepare(store);
2156 if (store->midx && fill_midx_entry(store->midx, oid, e))
2157 return 1;
2158
2159 for (l = store->packs.head; l; l = l->next) {
2160 struct packed_git *p = l->pack;
2161
2162 if (!p->multi_pack_index && fill_pack_entry(oid, e, p)) {
2163 if (!store->skip_mru_updates)
2164 packfile_list_prepend(&store->packs, p);
2165 return 1;
2166 }
2167 }
2168
2169 return 0;
2170}
2171
2172int packfile_store_freshen_object(struct packfile_store *store,
2173 const struct object_id *oid)

Callers 4

has_object_packFunction · 0.85

Calls 4

packfile_store_prepareFunction · 0.85
fill_midx_entryFunction · 0.85
packfile_list_prependFunction · 0.85
fill_pack_entryFunction · 0.70

Tested by

no test coverage detected