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

Function try_bitmap_disk_usage

builtin/rev-list.c:617–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615}
616
617static int try_bitmap_disk_usage(struct rev_info *revs,
618 int filter_provided_objects)
619{
620 struct bitmap_index *bitmap_git;
621 off_t size_from_bitmap;
622
623 if (!show_disk_usage)
624 return -1;
625
626 bitmap_git = prepare_bitmap_walk(revs, filter_provided_objects);
627 if (!bitmap_git)
628 return -1;
629
630 size_from_bitmap = get_disk_usage_from_bitmap(bitmap_git, revs);
631 print_disk_usage(size_from_bitmap);
632
633 free_bitmap_index(bitmap_git);
634 return 0;
635}
636
637/*
638 * If revs->maximal_only is set and no other walk modifiers are provided,

Callers 1

cmd_rev_listFunction · 0.85

Calls 4

prepare_bitmap_walkFunction · 0.85
print_disk_usageFunction · 0.85
free_bitmap_indexFunction · 0.85

Tested by

no test coverage detected