mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Added Git sha1 and dirty status in redis-server -v output
This commit is contained in:
parent
ea2c08e922
commit
8a3b0d2d9a
3
redis.c
3
redis.c
@ -10906,7 +10906,8 @@ static void daemonize(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void version() {
|
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);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user