repo_stats_collect
void repo_stats_collect(void (*)(const struct repo *,
repo_stats_collect(sum_repostats, &stats.repo_stats);
repo_stats_collect(repo_stats, NULL);