| 702 | } |
| 703 | |
| 704 | static int open_midx_bitmap(struct repository *r, |
| 705 | struct bitmap_index *bitmap_git) |
| 706 | { |
| 707 | struct odb_source *source; |
| 708 | int ret = -1; |
| 709 | |
| 710 | assert(!bitmap_git->map); |
| 711 | |
| 712 | odb_prepare_alternates(r->objects); |
| 713 | for (source = r->objects->sources; source; source = source->next) { |
| 714 | struct multi_pack_index *midx = get_multi_pack_index(source); |
| 715 | if (midx && !open_midx_bitmap_1(bitmap_git, midx)) |
| 716 | ret = 0; |
| 717 | } |
| 718 | return ret; |
| 719 | } |
| 720 | |
| 721 | static int open_bitmap(struct repository *r, |
| 722 | struct bitmap_index *bitmap_git) |
no test coverage detected