Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show version and commit hash in a more pretty way #1252

Merged
merged 5 commits into from
Feb 8, 2023

Conversation

PragmaTwice
Copy link
Member

In this PR, I adjust the format of the version (and commit hash) printing, e.g.


Before:
kvrocks version 999.999.999 @1234567
After:
kvrocks unstable (commit 1234567)


Before:
kvrocks version 2.3.0 @1234567
After:
kvrocks version 2.3.0 (commit 1234567)


(no commit hash, e.g. in an archive)
Before:
kvrocks version 2.3.0 @
After:
kvrocks version 2.3.0


(no commit hash, e.g. in an archive)
Before:
kvrocks version 999.999.999 @
After:
kvrocks unstable (an additional WARNING will be printed while executing CMake, while it is on the unstable branch and a commit hash cannot be retrieved)

@PragmaTwice
Copy link
Member Author

Thanks all. Merging...

@PragmaTwice PragmaTwice merged commit 8cb9cfa into apache:unstable Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants