mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +00:00
[cmake] remove --long from version.cmake
This means if someone checks out a tagged revision, the extra commit N and commit hash are removed from the VERSION, leaving just the tag name Adding any commits will cause -<commitssince>-g<commithash> to return. The dirty worktree '+' still functions as normal, simply appended to the end of the tag name, like 'v1.0.3+'. With both extra commits and a dirty worktree, it will look like 'v1.0.3-2-gd6e00e4f34a+', as usual.
This commit is contained in:
parent
5cc4f5454f
commit
fabb5bd4a9
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
execute_process(
|
||||
COMMAND git describe --always --long --abbrev=10 --dirty=+ --tags
|
||||
COMMAND git describe --always --abbrev=10 --dirty=+ --tags
|
||||
WORKING_DIRECTORY "${PROJECT_TOP}"
|
||||
OUTPUT_VARIABLE GIT_REV
|
||||
ERROR_QUIET)
|
||||
|
|
Loading…
Reference in a new issue