summaryrefslogtreecommitdiff
path: root/src/Version.h.in
diff options
context:
space:
mode:
authorJF002 <JF002@users.noreply.github.com>2021-05-16 09:37:39 (GMT)
committerGitHub <noreply@github.com>2021-05-16 09:37:39 (GMT)
commit5b2472c4bc84bbdd5e8326ea7562f6bc133cf00e (patch)
tree7b78058f711164ab36890c2acccb56c8e7ac6e91 /src/Version.h.in
parentb5884397191964a3bc080bd4c6953e2b00a564a9 (diff)
parenta4de61e1f5c7842d25bac0cfb22e4a9f0bff671c (diff)
Merge pull request #347 from jedi2light/feature-show-git-commit-hash-short
Feature: Store and show git short ref on PineTime alongside other firmware information
Diffstat (limited to 'src/Version.h.in')
-rw-r--r--src/Version.h.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Version.h.in b/src/Version.h.in
index 6ff5938..8cd39c9 100644
--- a/src/Version.h.in
+++ b/src/Version.h.in
@@ -8,11 +8,13 @@ namespace Pinetime {
static constexpr uint32_t Major() {return major;}
static constexpr uint32_t Minor() {return minor;}
static constexpr uint32_t Patch() {return patch;}
+ static constexpr const char* GitCommitHash() {return commitHash;}
static constexpr const char* VersionString() {return versionString;}
private:
static constexpr uint32_t major = @PROJECT_VERSION_MAJOR@;
static constexpr uint32_t minor = @PROJECT_VERSION_MINOR@;
static constexpr uint32_t patch = @PROJECT_VERSION_PATCH@;
+ static constexpr const char* commitHash = "@PROJECT_GIT_COMMIT_HASH@";
static constexpr const char* versionString = "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@";
};
} \ No newline at end of file