How do you achieve a numeric versioning scheme with Git?

Posted by Erlend on Programmers See other posts from Programmers or by Erlend
Published on 2012-03-28T18:18:32Z Indexed on 2012/03/28 23:43 UTC
Read the original article Hit count: 312

Filed under:
|
|
|
|

My organization is considering moving from SVN to Git. One argument against moving is as follows:

How do we do versioning?

We have an SDK distribution based on the NetBeans Platform. As the svn revisions are simple numbers we can use them to extend the version numbers of our plugins and SDK builds. How do we handle this when we move to Git?

Possible solutions:

  • Using the build number from hudson (Problem: you have to check hudson to correlate that to an actual git version)
  • Manually upping the version for nightly and stable (Problem: Learning curve, human error)

If someone else has encountered a similar problem and solved it, we'd love to hear how.

© Programmers or respective owner

Related posts about version-control

Related posts about git