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

Function show_extended_objects

pack-bitmap.c:1640–1664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1638}
1639
1640static void show_extended_objects(struct bitmap_index *bitmap_git,
1641 struct rev_info *revs,
1642 show_reachable_fn show_reach)
1643{
1644 struct bitmap *objects = bitmap_git->result;
1645 struct eindex *eindex = &bitmap_git->ext_index;
1646 uint32_t i;
1647
1648 for (i = 0; i < eindex->count; ++i) {
1649 struct object *obj;
1650
1651 if (!bitmap_get(objects,
1652 st_add(bitmap_num_objects_total(bitmap_git),
1653 i)))
1654 continue;
1655
1656 obj = eindex->objects[i];
1657 if ((obj->type == OBJ_BLOB && !revs->blob_objects) ||
1658 (obj->type == OBJ_TREE && !revs->tree_objects) ||
1659 (obj->type == OBJ_TAG && !revs->tag_objects))
1660 continue;
1661
1662 show_reach(&obj->oid, obj->type, 0, eindex->hashes[i], NULL, 0, NULL);
1663 }
1664}
1665
1666static void init_type_iterator(struct ewah_or_iterator *it,
1667 struct bitmap_index *bitmap_git,

Callers 1

Calls 3

bitmap_getFunction · 0.85
st_addFunction · 0.85
bitmap_num_objects_totalFunction · 0.85

Tested by

no test coverage detected