Skip to content

Automatic determination of version string

Dirk HOFFMANN requested to merge github/fork/GeraldJansen/auto-version into master

Created by: GeraldJansen

Use git describe --tags --always --dirty=+ to automatically determine a Hamster version string. The version string is set by the waf wscript for installed versions or at runtime if running uninstalled. For example,

[src]$ ./hamster-cli version
v2.2.2-316-g24c88ae (uninstalled)

where the current revision is 24c88aea and it is 316 commits after tag v2.2.2. (Also works for hamster about.)

Merge request reports

Loading