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

wishlist: show current git object in --version #26

Closed
tobwen opened this issue May 9, 2016 · 0 comments
Closed

wishlist: show current git object in --version #26

tobwen opened this issue May 9, 2016 · 0 comments

Comments

@tobwen
Copy link

tobwen commented May 9, 2016

Would it be possible to add SHA of the current git objekct in --version, if sourcecode has been pulled from GIT?

Right now, I'm using a small shell-script, which modifies CMakeList.txt like this:

set(OSMIUM_COMMIT_GIT    6ba6903f56aa2dd99d8911bfa3cbc69bea3c8e70)

set(OSMIUM_VERSION "${OSMIUM_VERSION_MAJOR}.${OSMIUM_VERSION_MINOR}.${OSMIUM_VERSION_PATCH} commit: ${OSMIUM_COMMIT_GIT}")

Maybe it would be better to run execute_process(COMMAND ... with some error detection, f.e. if GIT has been installed at all ;)

@joto joto closed this as completed in 0cabe1b Jun 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant