Line data Source code
1 : /*! 2 : * \file esys/repo/libgit2/guardequal_libgit2.cpp 3 : * \brief 4 : * 5 : * \cond 6 : * __legal_b__ 7 : * 8 : * Copyright (c) 2023 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/guardequal.h" 20 : #include "esys/repo/libgit2/guard.h" 21 : 22 : namespace esys::repo::libgit2 23 : { 24 : 25 : template<> 26 0 : ESYSREPO_API bool guard_equal<git_remote>(const Guard<git_remote> &left, const Guard<git_remote> &right) 27 : { 28 0 : if (git_remote_name(left.get()) != git_remote_name(right.get())) return false; 29 0 : if (git_remote_url(left.get()) != git_remote_url(right.get())) return false; 30 : return true; 31 : } 32 : 33 : } // namespace esys::repo::libgit2