| 2147 | } |
| 2148 | |
| 2149 | static 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 | |
| 2172 | int packfile_store_freshen_object(struct packfile_store *store, |
| 2173 | const struct object_id *oid) |
no test coverage detected