git2wrapC++20 wrapper for libgit2 |
git clone git://git.dimitrijedobrota.com/git2wrap.git |
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING |
libgit2.cpp (281B)
0 #include "git2wrap/libgit2.hpp"
2 #include "git2wrap/error.hpp"
4 namespace git2wrap
5 {
7 libgit2::libgit2()
8 {
9 if (m_cinit = git_libgit2_init(); m_cinit < 0) {
10 throw error<error_code_t::error>();
11 }
12 }
14 libgit2::~libgit2()
15 {
16 git_libgit2_shutdown();
17 }
19 } // namespace git2wrap