From 542d1a865c06faa14917a33f0958edf4da0c6186 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 1 Jul 2020 08:50:16 +0200 Subject: [PATCH] Add git namespace. --- src/git.cpp | 4 ++-- src/git.hpp | 4 ++-- src/main.cpp | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/git.cpp b/src/git.cpp index 0bf1110..b8cd8eb 100644 --- a/src/git.cpp +++ b/src/git.cpp @@ -27,7 +27,7 @@ #include #include -namespace FediBlock +namespace FediBlock::git { using std::ofstream; @@ -187,4 +187,4 @@ void make_commit(const entry_type &entry) git_tree_free(tree); } -} // namespace FediBlock +} // namespace FediBlock::git diff --git a/src/git.hpp b/src/git.hpp index e658b58..142dbc3 100644 --- a/src/git.hpp +++ b/src/git.hpp @@ -21,7 +21,7 @@ #include -namespace FediBlock +namespace FediBlock::git { using std::uint64_t; @@ -42,6 +42,6 @@ void make_new_branch(); // Make a new commit. void make_commit(const entry_type &entry); -} // namespace FediBlock +} // namespace FediBlock::git #endif // FEDIBLOCK_BACKEND_GIT_HPP diff --git a/src/main.cpp b/src/main.cpp index 35009ab..1da438f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -66,10 +66,10 @@ int main() git_libgit2_init(); - clone_repo(); - cout << "Next branch ID: " << get_last_id() + 1 << "\r\n"; - make_new_branch(); - make_commit(entry); + git::clone_repo(); + cout << "Next branch ID: " << git::get_last_id() + 1 << "\r\n"; + git::make_new_branch(); + git::make_commit(entry); try {