View mode: basic / threaded / horizontal-split · Log in · Help
January 14, 2013
[Issue 9316] New: Version string should be generated from a git tag
http://d.puremagic.com/issues/show_bug.cgi?id=9316

          Summary: Version string should be generated from a git tag
          Product: D
          Version: D1 & D2
         Platform: All
       OS/Version: All
           Status: NEW
         Severity: normal
         Priority: P2
        Component: DMD
       AssignedTo: nobody@puremagic.com
       ReportedBy: leandro.lucarella@sociomantic.com


--- Comment #0 from Leandro Lucarella <leandro.lucarella@sociomantic.com> 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: -------
January 14, 2013
[Issue 9316] Version string should be generated from a git tag
http://d.puremagic.com/issues/show_bug.cgi?id=9316



--- Comment #1 from Leandro Lucarella <leandro.lucarella@sociomantic.com> 2013-01-14 02:54:05 PST ---
Just for reference, this was triggered by
https://github.com/D-Programming-Language/dmd/pull/1469

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 08, 2013
[Issue 9316] Version string should be generated from a git tag
http://d.puremagic.com/issues/show_bug.cgi?id=9316



--- Comment #2 from Leandro Lucarella <leandro.lucarella@sociomantic.com> 2013-04-08 06:45:08 PDT ---
Partial improvement: https://github.com/D-Programming-Language/dmd/pull/1737

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home