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

Function in_bitmapped_pack

pack-bitmap.c:1758–1775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1756}
1757
1758static 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
1777static struct bitmap *find_tip_objects(struct bitmap_index *bitmap_git,
1778 struct object_list *tip_objects,

Callers 1

prepare_bitmap_walkFunction · 0.85

Calls 3

bitmap_is_midxFunction · 0.85
bsearch_midxFunction · 0.85
find_pack_entry_oneFunction · 0.85

Tested by

no test coverage detected