]> git.saurik.com Git - redis.git/blobdiff - release.c
hopefully faster recompiling with a trick
[redis.git] / release.c
diff --git a/release.c b/release.c
new file mode 100644 (file)
index 0000000..64186ec
--- /dev/null
+++ b/release.c
@@ -0,0 +1,13 @@
+/* Every time the Redis Git SHA1 or Dirty status changes only this file
+ * small file is recompiled, as we access this information in all the other
+ * files using this functions. */
+
+#include "release.h"
+
+char *redisGitSHA1(void) {
+    return REDIS_GIT_SHA1;
+}
+
+char *redisGitDirty(void) {
+    return REDIS_GIT_DIRTY;
+}