| 1775 | } |
| 1776 | |
| 1777 | static struct bitmap *find_tip_objects(struct bitmap_index *bitmap_git, |
| 1778 | struct object_list *tip_objects, |
| 1779 | enum object_type type) |
| 1780 | { |
| 1781 | struct bitmap *result = bitmap_new(); |
| 1782 | struct object_list *p; |
| 1783 | |
| 1784 | for (p = tip_objects; p; p = p->next) { |
| 1785 | int pos; |
| 1786 | |
| 1787 | if (p->item->type != type) |
| 1788 | continue; |
| 1789 | |
| 1790 | pos = bitmap_position(bitmap_git, &p->item->oid); |
| 1791 | if (pos < 0) |
| 1792 | continue; |
| 1793 | |
| 1794 | bitmap_set(result, pos); |
| 1795 | } |
| 1796 | |
| 1797 | return result; |
| 1798 | } |
| 1799 | |
| 1800 | static void filter_bitmap_exclude_type(struct bitmap_index *bitmap_git, |
| 1801 | struct object_list *tip_objects, |
no test coverage detected