}
for (const auto& repo : repos) {
for (const auto& branch : repo.get_branches()) {
std::filesystem::create_directory(args.output_dir / repo.get_name());
const std::filesystem::path base = args.output_dir / repo.get_name();
std::filesystem::create_directory(base);
write_log(args, repo, branch);
write_files(args, repo, branch);
write_refs(args, repo, branch);
for (const auto& branch : repo.get_branches()) {
write_log(base, repo, branch);
write_files(base, repo, branch);
write_refs(base, repo, branch);
}
const std::filesystem::path files = base / "files";
std::filesystem::create_directory(files);
write_commits(files, repo);
}
// Build repo index