From: antirez Date: Thu, 27 May 2010 22:23:27 +0000 (+0200) Subject: Added Git sha1 and dirty status in redis-server -v output X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/8a3b0d2d9a2eb34f1277e22c3f0185b0bfe21959?ds=sidebyside Added Git sha1 and dirty status in redis-server -v output --- diff --git a/redis.c b/redis.c index 33db9a1a..639b71df 100644 --- a/redis.c +++ b/redis.c @@ -10906,7 +10906,8 @@ static void daemonize(void) { } static void version() { - printf("Redis server version %s\n", REDIS_VERSION); + printf("Redis server version %s (%s:%d)\n", REDIS_VERSION, + REDIS_GIT_SHA1, atoi(REDIS_GIT_DIRTY) > 0); exit(0); }