-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Versioning #13
Comments
In general git can assign tags to commits, just like svn used tags for versioning. So whenever you feel that a new version number is warranted just create a new tag. Having a version nr. in datamat makes sense for me. Why not simply have the datamat version nr mirror the branch + last git tag that it is based on? |
Ok, so how would we implement that? I used SVN's string replacement capability (
And then I could use |
OK, I think this is something that could work: We create tags for every version that is worthy of a 'full' release. Then we use a post-commit hook to generate a 'VERSION' file that creates the name of the last tag. Conveniently the 'git describe' command does just that, even better, it appends some meaningful stats (like the nr of commits done since the last tag). So if you put this: |
How should versioning be handled? I would like to see the Datamat class (at least) have a changing version number so that we can query it at runtime.
Any suggestions for implementing this, or reasons why we shouldn't at all?
In previous projects I often stick the SVN revision number in the version string which has downsides but works well.
The text was updated successfully, but these errors were encountered: