| 853 | } |
| 854 | |
| 855 | static void structure_count_objects(struct object_stats *stats, |
| 856 | struct rev_info *revs, |
| 857 | struct repository *repo, int show_progress) |
| 858 | { |
| 859 | struct path_walk_info info = PATH_WALK_INFO_INIT; |
| 860 | struct count_objects_data data = { |
| 861 | .odb = repo->objects, |
| 862 | .stats = stats, |
| 863 | }; |
| 864 | |
| 865 | info.revs = revs; |
| 866 | info.path_fn = count_objects; |
| 867 | info.path_fn_data = &data; |
| 868 | |
| 869 | if (show_progress) |
| 870 | data.progress = start_delayed_progress(repo, _("Counting objects"), 0); |
| 871 | |
| 872 | walk_objects_by_path(&info); |
| 873 | path_walk_info_clear(&info); |
| 874 | stop_progress(&data.progress); |
| 875 | } |
| 876 | |
| 877 | static int cmd_repo_structure(int argc, const char **argv, const char *prefix, |
| 878 | struct repository *repo) |
no test coverage detected