Line data Source code
1 : /*! 2 : * \file esys/repo/git/branchtype_git.cpp 3 : * \brief 4 : * 5 : * \cond 6 : * __legal_b__ 7 : * 8 : * Copyright (c) 2020-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/git/branchtype.h" 20 : 21 : namespace std 22 : { 23 : 24 0 : ESYSREPO_API ostream &operator<<(ostream &os, esys::repo::git::BranchType branch_type) 25 : { 26 0 : switch (branch_type) 27 : { 28 0 : case esys::repo::git::BranchType::NOT_SET: os << "NOT_SET"; break; 29 0 : case esys::repo::git::BranchType::LOCAL: os << "LOCAL"; break; 30 0 : case esys::repo::git::BranchType::REMOTE: os << "REMOTE"; break; 31 0 : case esys::repo::git::BranchType::ALL: os << "ALL"; break; 32 0 : default: os << "<unknonwn>"; 33 : } 34 0 : return os; 35 : } 36 : 37 : } // namespace std