Added Git sha1 and dirty status in redis-server -v output

This commit is contained in:
antirez 2010-05-28 00:23:27 +02:00
parent ea2c08e922
commit 8a3b0d2d9a

View File

@ -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);
}