xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
libxrpl
git
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
12
namespace
xrpl::git
{
13
14
static
constexpr
char
kGitCommitHash
[] = GIT_COMMIT_HASH;
15
static
constexpr
char
kGitBuildBranch
[] = GIT_BUILD_BRANCH;
16
17
std::string
const
&
18
getCommitHash
()
19
{
20
static
std::string
const
kValue =
kGitCommitHash
;
21
return
kValue;
22
}
23
24
std::string
const
&
25
getBuildBranch
()
26
{
27
static
std::string
const
kValue =
kGitBuildBranch
;
28
return
kValue;
29
}
30
31
}
// namespace xrpl::git
std::string
xrpl::git
Definition
Git.h:5
xrpl::git::getCommitHash
std::string const & getCommitHash()
Definition
Git.cpp:18
xrpl::git::getBuildBranch
std::string const & getBuildBranch()
Definition
Git.cpp:25
xrpl::git::kGitCommitHash
static constexpr char kGitCommitHash[]
Definition
Git.cpp:14
xrpl::git::kGitBuildBranch
static constexpr char kGitBuildBranch[]
Definition
Git.cpp:15
string
Generated by
1.17.0