| 1254 | } |
| 1255 | |
| 1256 | const struct packed_git *has_packed_and_bad(struct repository *r, |
| 1257 | const struct object_id *oid) |
| 1258 | { |
| 1259 | struct odb_source *source; |
| 1260 | |
| 1261 | for (source = r->objects->sources; source; source = source->next) { |
| 1262 | struct odb_source_files *files = odb_source_files_downcast(source); |
| 1263 | struct packfile_list_entry *e; |
| 1264 | |
| 1265 | for (e = files->packed->packs.head; e; e = e->next) |
| 1266 | if (oidset_contains(&e->pack->bad_objects, oid)) |
| 1267 | return e->pack; |
| 1268 | } |
| 1269 | |
| 1270 | return NULL; |
| 1271 | } |
| 1272 | |
| 1273 | off_t get_delta_base(struct packed_git *p, |
| 1274 | struct pack_window **w_curs, |
no test coverage detected