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

Function bitmap_position_extended

pack-bitmap.c:1056–1068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1054}
1055
1056static inline int bitmap_position_extended(struct bitmap_index *bitmap_git,
1057 const struct object_id *oid)
1058{
1059 kh_oid_pos_t *positions = bitmap_git->ext_index.positions;
1060 khiter_t pos = kh_get_oid_pos(positions, *oid);
1061
1062 if (pos < kh_end(positions)) {
1063 int bitmap_pos = kh_value(positions, pos);
1064 return bitmap_pos + bitmap_num_objects_total(bitmap_git);
1065 }
1066
1067 return -1;
1068}
1069
1070static inline int bitmap_position_packfile(struct bitmap_index *bitmap_git,
1071 const struct object_id *oid)

Callers 1

bitmap_positionFunction · 0.85

Calls 1

bitmap_num_objects_totalFunction · 0.85

Tested by

no test coverage detected