rippled
Loading...
Searching...
No Matches
Git.cpp
1#include "xrpl/git/Git.h"
2
3#include <string>
4
5#ifndef GIT_COMMIT_HASH
6#error "GIT_COMMIT_HASH must be defined"
7#endif
8#ifndef GIT_BUILD_BRANCH
9#error "GIT_BUILD_BRANCH must be defined"
10#endif
11
12namespace xrpl::git {
13
14static constexpr char kGIT_COMMIT_HASH[] = GIT_COMMIT_HASH;
15static constexpr char kGIT_BUILD_BRANCH[] = GIT_BUILD_BRANCH;
16
17std::string const&
19{
20 static std::string const kVALUE = kGIT_COMMIT_HASH;
21 return kVALUE;
22}
23
24std::string const&
26{
27 static std::string const kVALUE = kGIT_BUILD_BRANCH;
28 return kVALUE;
29}
30
31} // namespace xrpl::git
Definition Git.h:5
std::string const & getCommitHash()
Definition Git.cpp:18
static constexpr char kGIT_COMMIT_HASH[]
Definition Git.cpp:14
std::string const & getBuildBranch()
Definition Git.cpp:25
static constexpr char kGIT_BUILD_BRANCH[]
Definition Git.cpp:15