summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2019-01-27 14:04:49 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-02-03 18:00:16 +0100
commit67c6f945fbfd4cb2c59788eea572a7954e4a2583 (patch)
treeb0babe60467aa1120edfe9e3858740cd84b9c161 /src
parentcca952d94bad599541c3f3ca417a72355262649a (diff)
downloadopenttd-67c6f945fbfd4cb2c59788eea572a7954e4a2583.tar.xz
Change: Include the full raw git revision hash in rev.cpp
Diffstat (limited to 'src')
-rw-r--r--src/rev.cpp.in5
-rw-r--r--src/rev.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/rev.cpp.in b/src/rev.cpp.in
index 0f4b2a6b5..3c68e18eb 100644
--- a/src/rev.cpp.in
+++ b/src/rev.cpp.in
@@ -48,6 +48,11 @@ const char _openttd_revision[] = "!!VERSION!!";
const char _openttd_build_date[] = __DATE__ " " __TIME__;
/**
+ * The git revision hash of this version.
+ */
+const char _openttd_revision_hash[] = "!!GITHASH!!";
+
+/**
* Let us know if current build was modified. This detection
* works even in the case when revision string is overridden by
* --revision argument.
diff --git a/src/rev.h b/src/rev.h
index d31dbb51c..55fc08699 100644
--- a/src/rev.h
+++ b/src/rev.h
@@ -14,6 +14,7 @@
extern const char _openttd_revision[];
extern const char _openttd_build_date[];
+extern const char _openttd_revision_hash[];
extern const byte _openttd_revision_modified;
extern const uint32 _openttd_newgrf_version;