Add git namespace.
This commit is contained in:
parent
46921a6e95
commit
542d1a865c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Reference in New Issue