提交 8a3b0d2d 编写于 作者: A antirez

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

上级 ea2c08e9
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册