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

Function structure_count_objects

builtin/repo.c:855–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

853}
854
855static 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
877static int cmd_repo_structure(int argc, const char **argv, const char *prefix,
878 struct repository *repo)

Callers 1

cmd_repo_structureFunction · 0.85

Calls 4

start_delayed_progressFunction · 0.85
walk_objects_by_pathFunction · 0.85
path_walk_info_clearFunction · 0.85
stop_progressFunction · 0.85

Tested by

no test coverage detected