| 681 | } |
| 682 | |
| 683 | static int open_pack_bitmap(struct repository *r, |
| 684 | struct bitmap_index *bitmap_git) |
| 685 | { |
| 686 | struct packed_git *p; |
| 687 | int ret = -1; |
| 688 | |
| 689 | repo_for_each_pack(r, p) { |
| 690 | if (open_pack_bitmap_1(bitmap_git, p) == 0) { |
| 691 | ret = 0; |
| 692 | /* |
| 693 | * The only reason to keep looking is to report |
| 694 | * duplicates. |
| 695 | */ |
| 696 | if (!trace2_is_enabled()) |
| 697 | break; |
| 698 | } |
| 699 | } |
| 700 | |
| 701 | return ret; |
| 702 | } |
| 703 | |
| 704 | static int open_midx_bitmap(struct repository *r, |
| 705 | struct bitmap_index *bitmap_git) |
no test coverage detected