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

Function bitmap_position

pack-bitmap.c:1095–1104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1093}
1094
1095static int bitmap_position(struct bitmap_index *bitmap_git,
1096 const struct object_id *oid)
1097{
1098 int pos;
1099 if (bitmap_is_midx(bitmap_git))
1100 pos = bitmap_position_midx(bitmap_git, oid);
1101 else
1102 pos = bitmap_position_packfile(bitmap_git, oid);
1103 return (pos >= 0) ? pos : bitmap_position_extended(bitmap_git, oid);
1104}
1105
1106static int ext_index_add_object(struct bitmap_index *bitmap_git,
1107 struct object *object, const char *name)

Callers 10

show_objectFunction · 0.85
should_includeFunction · 0.85
should_include_objFunction · 0.85
find_boundary_objectsFunction · 0.85
find_objectsFunction · 0.85
find_tip_objectsFunction · 0.85
bitmap_walk_containsFunction · 0.85
test_show_objectFunction · 0.85
test_show_commitFunction · 0.85

Calls 4

bitmap_is_midxFunction · 0.85
bitmap_position_midxFunction · 0.85
bitmap_position_packfileFunction · 0.85
bitmap_position_extendedFunction · 0.85

Tested by 2

test_show_objectFunction · 0.68
test_show_commitFunction · 0.68