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

Function should_include_obj

pack-bitmap.c:1236–1250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1234}
1235
1236static 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
1252static int add_commit_to_bitmap(struct bitmap_index *bitmap_git,
1253 struct bitmap **base,

Callers

nothing calls this directly

Calls 2

bitmap_positionFunction · 0.85
bitmap_getFunction · 0.85

Tested by

no test coverage detected