| 2270 | } |
| 2271 | |
| 2272 | int has_object_pack(struct repository *r, const struct object_id *oid) |
| 2273 | { |
| 2274 | struct odb_source *source; |
| 2275 | struct pack_entry e; |
| 2276 | |
| 2277 | odb_prepare_alternates(r->objects); |
| 2278 | for (source = r->objects->sources; source; source = source->next) { |
| 2279 | struct odb_source_files *files = odb_source_files_downcast(source); |
| 2280 | int ret = find_pack_entry(files->packed, oid, &e); |
| 2281 | if (ret) |
| 2282 | return ret; |
| 2283 | } |
| 2284 | |
| 2285 | return 0; |
| 2286 | } |
| 2287 | |
| 2288 | int has_object_kept_pack(struct repository *r, const struct object_id *oid, |
| 2289 | unsigned flags) |
no test coverage detected