wandererfan wrote: ↑
Tue Jan 30, 2018 7:35 pm
this discussion tells how to find the version number of current branch. So you could checkout commit 12345678 then use rev-list to find the version number.
https://forum.freecadweb.org/viewtopic. ... 60#p212589
chrisb wrote: ↑
Tue Jan 30, 2018 3:05 pm
Sorry I wasn't very serious and I didn't make myself clear: I was asking for a simple possibility to derive the FreeCAD version number - e.g. 13180, 13181, ... from the git commit number. Now I compare the git number on the FreeCAD site with the single numbers in the list on git.
I think I know where chrisb is going with this.
Imagine the following without a git clone on your system.
wmayer makes a classic "git commit 12345" post on the forum in response to a bug/feature request.
Wow, this is great, what version does this correspond to? (Maybe we can use the GitHub web API)
Wow, this is even more great, I wonder if the "daily" builds have this yet? (maybe there is a way to use the GitHub Releases API and/or Launchpad API)
This has the makings of a pretty nifty macro tied to a global custom toolbar.