| | |
- fromVersionHeader()
- Returns the version as defined in "include/version.h" or as a fallback
"src/config.h.cmake". Since the latter only contains the last release info it is extended
with "-0000000000" to mark that it may not be a release and the commit hash is unknown.
- gitDescribe(commit='HEAD', gitDir='/home/delphi/gcc/sumo/tools/sumolib/../../.git', padZero=True)
- The original git describe format is "<tag>-<commit_count>-g<hash>".
We convert it to "<tag>+<commit-count>-hash". If padZero is true (the default),
the commit count is padded to four digits.
If the git describe call fails, the result of fromVersionHeader is returned.
|