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)
0 #include <format>
1 #include <iostream>
3 #include "git2wrap/error.hpp"
4 #include "git2wrap/libgit2.hpp"
6 int main()
7 {
8 try {
9 using namespace git2wrap; // NOLINT
11 const libgit2 git;
13 } catch (const git2wrap::runtime_error& err) {
14 std::cerr << std::format("Error: %s\n", err.what());
15 }
17 return 0;
18 }