| 719 | } |
| 720 | |
| 721 | static int open_bitmap(struct repository *r, |
| 722 | struct bitmap_index *bitmap_git) |
| 723 | { |
| 724 | int found; |
| 725 | |
| 726 | assert(!bitmap_git->map); |
| 727 | |
| 728 | found = !open_midx_bitmap(r, bitmap_git); |
| 729 | |
| 730 | /* |
| 731 | * these will all be skipped if we opened a midx bitmap; but run it |
| 732 | * anyway if tracing is enabled to report the duplicates |
| 733 | */ |
| 734 | if (!found || trace2_is_enabled()) |
| 735 | found |= !open_pack_bitmap(r, bitmap_git); |
| 736 | |
| 737 | return found ? 0 : -1; |
| 738 | } |
| 739 | |
| 740 | struct bitmap_index *prepare_bitmap_git(struct repository *r) |
| 741 | { |
no test coverage detected