Line data Source code
1 : /*! 2 : * \file esys/repo/libgit2/libgit2.cpp 3 : * \brief 4 : * 5 : * \cond 6 : * __legal_b__ 7 : * 8 : * Copyright (c) 2020 Michel Gillet 9 : * Distributed under the MIT License. 10 : * (See accompanying file LICENSE.txt or 11 : * copy at https://opensource.org/licenses/MIT) 12 : * 13 : * __legal_e__ 14 : * \endcond 15 : * 16 : */ 17 : 18 : #include "esys/repo/esysrepo_prec.h" 19 : #include "esys/repo/libgit2/libgit2.h" 20 : 21 : #include <git2.h> 22 : 23 : #include <iostream> 24 : 25 : namespace esys::repo::libgit2 26 : { 27 : 28 1 : LibGit2::LibGit2() 29 : { 30 1 : git_libgit2_init(); 31 1 : } 32 : 33 1 : LibGit2::~LibGit2() 34 : { 35 1 : git_libgit2_shutdown(); 36 1 : } 37 : 38 : } // namespace esys::repo::libgit2