Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
8a3b0d2d
Commit
8a3b0d2d
authored
May 28, 2010
by
antirez
Browse files
Added Git sha1 and dirty status in redis-server -v output
parent
ea2c08e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
8a3b0d2d
...
@@ -10906,7 +10906,8 @@ static void daemonize(void) {
...
@@ -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);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment