Line data Source code
1 : /*! 2 : * \file esys/repo/git/updatetip_git.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/git/updatetip.h" 20 : 21 : namespace esys::repo::git 22 : { 23 : 24 944 : UpdateTip::UpdateTip() = default; 25 : 26 944 : UpdateTip::~UpdateTip() = default; 27 : 28 944 : void UpdateTip::set_type(UpdateTipType type) 29 : { 30 944 : m_type = type; 31 944 : } 32 : 33 0 : UpdateTipType UpdateTip::get_type() const 34 : { 35 0 : return m_type; 36 : } 37 : 38 0 : UpdateTipType &UpdateTip::get_type() 39 : { 40 0 : return m_type; 41 : } 42 : 43 944 : void UpdateTip::set_ref_name(const std::string &ref_name) 44 : { 45 944 : m_ref_name = ref_name; 46 944 : } 47 : 48 0 : const std::string &UpdateTip::get_ref_name() const 49 : { 50 0 : return m_ref_name; 51 : } 52 : 53 944 : void UpdateTip::set_new_oid(const std::string &new_oid) 54 : { 55 944 : m_new_oid = new_oid; 56 944 : } 57 : 58 0 : const std::string &UpdateTip::get_new_oid() const 59 : { 60 0 : return m_new_oid; 61 : } 62 : 63 0 : void UpdateTip::set_old_oid(const std::string &old_oid) 64 : { 65 0 : m_old_oid = old_oid; 66 0 : } 67 : 68 0 : const std::string &UpdateTip::get_old_oid() const 69 : { 70 0 : return m_old_oid; 71 : } 72 : 73 : } // namespace esys::repo::git