git2wrapC++20 wrapper for libgit2 |
git clone git://git.dimitrijedobrota.com/git2wrap.git |
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING | |
git2wrap_test.cpp (314B)
1 #include <format> 2 #include <iostream> 3 4 #include "git2wrap/error.hpp" 5 #include "git2wrap/libgit2.hpp" 6 7 int main() 8 { 9 try { 10 using namespace git2wrap; // NOLINT 11 12 const libgit2 git; 13 14 } catch (const git2wrap::runtime_error& err) { 15 std::cerr << std::format("Error: %s\n", err.what()); 16 } 17 18 return 0; 19 }