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

Function add_commit_to_bitmap

pack-bitmap.c:1252–1271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250}
1251
1252static int add_commit_to_bitmap(struct bitmap_index *bitmap_git,
1253 struct bitmap **base,
1254 struct commit *commit)
1255{
1256 struct ewah_bitmap *or_with = bitmap_for_commit(bitmap_git, commit);
1257
1258 if (!or_with) {
1259 existing_bitmaps_misses_nr++;
1260 return 0;
1261 }
1262
1263 existing_bitmaps_hits_nr++;
1264
1265 if (!*base)
1266 *base = ewah_to_bitmap(or_with);
1267 else
1268 bitmap_or_ewah(*base, or_with);
1269
1270 return 1;
1271}
1272
1273static struct bitmap *fill_in_bitmap(struct bitmap_index *bitmap_git,
1274 struct rev_info *revs,

Callers 3

show_boundary_commitFunction · 0.85
find_boundary_objectsFunction · 0.85
find_objectsFunction · 0.85

Calls 3

bitmap_for_commitFunction · 0.85
ewah_to_bitmapFunction · 0.85
bitmap_or_ewahFunction · 0.85

Tested by

no test coverage detected