startgitStatic page generator for git repositories |
git clone git://git.dimitrijedobrota.com/startgit.git |
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING |
commit | 02a1d05c6f23e1e99f73437d9f83161b17f7fb6a |
parent | f074f5020be313c89cf9ee22e6ae8861799f7492 |
author | Dimitrije Dobrota < mail@dimitrijedobrota.com > |
date | Sat, 7 Jun 2025 18:56:47 +0200 |
Fix missing special files
M | source/startgit.cpp | | | +++ --- |
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ source/startgit.cpp b/ source/startgit.cpp
@@ -557,7 +557,7 @@
void write_files(
}
}
void write_readme_licence(
void write_special(
const std::filesystem::path& base,
const repository& repo,
const branch& branch
@@ -574,7 +574,7 @@
void write_readme_licence(
static const auto process_output =
+[](const MD_CHAR* str, MD_SIZE size, void* data)
{
auto buffer = *static_cast<std::string*>(data);
auto& buffer = *static_cast<std::string*>(data);
buffer += std::string(str, size);
};
@@ -771,7 +771,7 @@
int main(int argc, const char* argv[])
write_log(base_branch, repo, branch);
write_file(base_branch, repo, branch);
write_readme_licence(base_branch, repo, branch);
write_special(base_branch, repo, branch);
const std::filesystem::path file = base_branch / "file";
std::filesystem::create_directory(file);