| 506 | static int helpEntriesLen; |
| 507 | |
| 508 | static sds cliVersion(void) { |
| 509 | sds version; |
| 510 | version = sdscatprintf(sdsempty(), "%s", REDIS_VERSION); |
| 511 | |
| 512 | /* Add git commit and working tree status when available */ |
| 513 | if (strtoll(redisGitSHA1(),NULL,16)) { |
| 514 | version = sdscatprintf(version, " (git:%s", redisGitSHA1()); |
| 515 | if (strtoll(redisGitDirty(),NULL,10)) |
| 516 | version = sdscatprintf(version, "-dirty"); |
| 517 | version = sdscat(version, ")"); |
| 518 | } |
| 519 | return version; |
| 520 | } |
| 521 | |
| 522 | static void cliInitHelp(void) { |
| 523 | int commandslen = sizeof(commandHelp)/sizeof(struct commandHelp); |
no test coverage detected