return 1;
}
try {
using namespace git2wrap; // NOLINT
using namespace git2wrap; // NOLINT
const libgit2 libgit;
const libgit2 libgit;
for (const auto& repo_path : args.repos) {
for (const auto& repo_path : args.repos) {
try {
const std::string repo_name = repo_path.stem().string();
repository repo = repository::open(
repo_path.c_str(), GIT_REPOSITORY_OPEN_NO_SEARCH, nullptr);
repository repo(nullptr);
try {
repo = repository::open(
repo_path.c_str(), GIT_REPOSITORY_OPEN_NO_SEARCH, nullptr);
} catch (const git2wrap::error& err) {
std::cerr << std::format("Warning: {} is not a repository\n",
repo_name);
continue;
}
for (auto it = repo.branch_begin(GIT_BRANCH_LOCAL);
it != repo.branch_end();
++it)
{
const std::string filename = repo_name + "_" + it->get_name() + ".html";
std::ofstream ofs(args.output_dir / filename);
const std::string filename = it->get_name() + "_log.html";
std::filesystem::create_directory(args.output_dir / repo_name);
std::ofstream ofs(args.output_dir / repo_name / filename);
revwalk rwalk(repo);