Add git namespace.

This commit is contained in:
tastytea 2020-07-01 08:50:16 +02:00
parent 46921a6e95
commit 542d1a865c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 8 additions and 8 deletions

View File

@ -27,7 +27,7 @@
#include <string>
#include <string_view>
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

View File

@ -21,7 +21,7 @@
#include <cstdint>
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

View File

@ -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
{