|Posted by Leandro Lucarella||PermalinkReply|
Summary: Version string should be generated from a git tag
Version: D1 & D2
--- Comment #0 from Leandro Lucarella <firstname.lastname@example.org> 2013-01-14 02:47:31 PST ---
Instead of having to change the version number manually, it would be better to generate the version number from the git tag. For that there is a very handy command called 'describe'.
git describe for a commit that have a tag pointing to it, returns the tag name. What's also nice about it is if there isn't the command prints tag-n-hash, where is the name of the last tag found, n is the number of commits on top of it and hash is the current hash. This can make very easy to detect if a compiler is a real release or a development snapshot and would make easier to report bugs for betas, since you can tell exactly which snapshot you're using.
I will also suggest using the --dirty option to tell if the working copy was "dirty" (with uncommitted changes) too.
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------