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

Function fill_in_bitmap

pack-bitmap.c:1273–1305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1271}
1272
1273static struct bitmap *fill_in_bitmap(struct bitmap_index *bitmap_git,
1274 struct rev_info *revs,
1275 struct bitmap *base,
1276 struct bitmap *seen)
1277{
1278 struct include_data incdata;
1279 struct bitmap_show_data show_data;
1280
1281 if (!base)
1282 base = bitmap_new();
1283
1284 incdata.bitmap_git = bitmap_git;
1285 incdata.base = base;
1286 incdata.seen = seen;
1287
1288 revs->include_check = should_include;
1289 revs->include_check_obj = should_include_obj;
1290 revs->include_check_data = &incdata;
1291
1292 if (prepare_revision_walk(revs))
1293 die(_("revision walk setup failed"));
1294
1295 show_data.bitmap_git = bitmap_git;
1296 show_data.base = base;
1297
1298 traverse_commit_list(revs, show_commit, show_object, &show_data);
1299
1300 revs->include_check = NULL;
1301 revs->include_check_obj = NULL;
1302 revs->include_check_data = NULL;
1303
1304 return base;
1305}
1306
1307struct bitmap_boundary_cb {
1308 struct bitmap_index *bitmap_git;

Callers 2

find_boundary_objectsFunction · 0.85
find_objectsFunction · 0.85

Calls 4

bitmap_newFunction · 0.85
prepare_revision_walkFunction · 0.85
traverse_commit_listFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected