| 1756 | } |
| 1757 | |
| 1758 | static int in_bitmapped_pack(struct bitmap_index *bitmap_git, |
| 1759 | struct object_list *roots) |
| 1760 | { |
| 1761 | while (roots) { |
| 1762 | struct object *object = roots->item; |
| 1763 | roots = roots->next; |
| 1764 | |
| 1765 | if (bitmap_is_midx(bitmap_git)) { |
| 1766 | if (bsearch_midx(&object->oid, bitmap_git->midx, NULL)) |
| 1767 | return 1; |
| 1768 | } else { |
| 1769 | if (find_pack_entry_one(&object->oid, bitmap_git->pack) > 0) |
| 1770 | return 1; |
| 1771 | } |
| 1772 | } |
| 1773 | |
| 1774 | return 0; |
| 1775 | } |
| 1776 | |
| 1777 | static struct bitmap *find_tip_objects(struct bitmap_index *bitmap_git, |
| 1778 | struct object_list *tip_objects, |
no test coverage detected