MCPcopy Create free account
hub / github.com/git/git / get_disk_usage_from_bitmap

Function get_disk_usage_from_bitmap

pack-bitmap.c:3293–3309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3291}
3292
3293off_t get_disk_usage_from_bitmap(struct bitmap_index *bitmap_git,
3294 struct rev_info *revs)
3295{
3296 off_t total = 0;
3297
3298 total += get_disk_usage_for_type(bitmap_git, OBJ_COMMIT);
3299 if (revs->tree_objects)
3300 total += get_disk_usage_for_type(bitmap_git, OBJ_TREE);
3301 if (revs->blob_objects)
3302 total += get_disk_usage_for_type(bitmap_git, OBJ_BLOB);
3303 if (revs->tag_objects)
3304 total += get_disk_usage_for_type(bitmap_git, OBJ_TAG);
3305
3306 total += get_disk_usage_for_extended(bitmap_git);
3307
3308 return total;
3309}
3310
3311int bitmap_is_midx(struct bitmap_index *bitmap_git)
3312{

Callers 1

try_bitmap_disk_usageFunction · 0.85

Calls 2

get_disk_usage_for_typeFunction · 0.85

Tested by

no test coverage detected