| 1234 | } |
| 1235 | |
| 1236 | static int should_include_obj(struct object *obj, void *_data) |
| 1237 | { |
| 1238 | struct include_data *data = _data; |
| 1239 | int bitmap_pos; |
| 1240 | |
| 1241 | bitmap_pos = bitmap_position(data->bitmap_git, &obj->oid); |
| 1242 | if (bitmap_pos < 0) |
| 1243 | return 1; |
| 1244 | if ((data->seen && bitmap_get(data->seen, bitmap_pos)) || |
| 1245 | bitmap_get(data->base, bitmap_pos)) { |
| 1246 | obj->flags |= SEEN; |
| 1247 | return 0; |
| 1248 | } |
| 1249 | return 1; |
| 1250 | } |
| 1251 | |
| 1252 | static int add_commit_to_bitmap(struct bitmap_index *bitmap_git, |
| 1253 | struct bitmap **base, |
nothing calls this directly
no test coverage detected