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

Function show_object

pack-bitmap.c:1140–1152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1138};
1139
1140static void show_object(struct object *object, const char *name, void *data_)
1141{
1142 struct bitmap_show_data *data = data_;
1143 int bitmap_pos;
1144
1145 bitmap_pos = bitmap_position(data->bitmap_git, &object->oid);
1146
1147 if (bitmap_pos < 0)
1148 bitmap_pos = ext_index_add_object(data->bitmap_git, object,
1149 name);
1150
1151 bitmap_set(data->base, bitmap_pos);
1152}
1153
1154static void show_commit(struct commit *commit UNUSED,
1155 void *data UNUSED)

Callers

nothing calls this directly

Calls 3

bitmap_positionFunction · 0.85
ext_index_add_objectFunction · 0.85
bitmap_setFunction · 0.85

Tested by

no test coverage detected