mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-07 02:36:47 +00:00
32 lines
589 B
C++
32 lines
589 B
C++
#include <xrpl/git/Git.h>
|
|
|
|
#include <string>
|
|
|
|
#ifndef GIT_COMMIT_HASH
|
|
#error "GIT_COMMIT_HASH must be defined"
|
|
#endif
|
|
#ifndef GIT_BUILD_BRANCH
|
|
#error "GIT_BUILD_BRANCH must be defined"
|
|
#endif
|
|
|
|
namespace xrpl::git {
|
|
|
|
static constexpr char kGitCommitHash[] = GIT_COMMIT_HASH;
|
|
static constexpr char kGitBuildBranch[] = GIT_BUILD_BRANCH;
|
|
|
|
std::string const&
|
|
getCommitHash()
|
|
{
|
|
static std::string const kValue = kGitCommitHash;
|
|
return kValue;
|
|
}
|
|
|
|
std::string const&
|
|
getBuildBranch()
|
|
{
|
|
static std::string const kValue = kGitBuildBranch;
|
|
return kValue;
|
|
}
|
|
|
|
} // namespace xrpl::git
|