MCPcopy Index your code
hub / github.com/git/git / find_tip_objects

Function find_tip_objects

pack-bitmap.c:1777–1798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1775}
1776
1777static 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
1800static void filter_bitmap_exclude_type(struct bitmap_index *bitmap_git,
1801 struct object_list *tip_objects,

Callers 2

filter_bitmap_blob_limitFunction · 0.85

Calls 3

bitmap_newFunction · 0.85
bitmap_positionFunction · 0.85
bitmap_setFunction · 0.85

Tested by

no test coverage detected