github some cool feature
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
github some cool feature
For a long time I was looking for some simple possibility to show the commit list starting at aspecific commit. Just realized this is really really easy. If you have the specific commit like in the following screen.
just add a "s" to commit and it will look like this:
I'm quite excited that is why I just like to show this to you guys. Bernd
just add a "s" to commit and it will look like this:
I'm quite excited that is why I just like to show this to you guys. Bernd
Re: github some cool feature
Thanks for sharing. Now as you became a Master Of Git: Where do have to put the "s" in order to see the FreeCAD version number belonging to a certain commit?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: github some cool feature
pic one commit without s, pic two commits with s in browser address ...
Re: github some cool feature
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.
Last edited by chrisb on Tue Jan 30, 2018 9:50 pm, edited 1 time in total.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: github some cool feature
Some other tips:
- Add .patch or .diff after a commit or PR ex. https://github.com/FreeCAD/FreeCAD/pull/1268.patch
- Go to https://github.com/FreeCAD/FreeCAD/ and press 't' (this opens up https://github.com/FreeCAD/FreeCAD/find/master )
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
- wandererfan
- Veteran
- Posts: 6267
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: github some cool feature
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.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. No wI compare the git number on the FreeCAD site with the single numbers in the list on git.
Re: github some cool feature
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#p212589chrisb 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.
"fight the good fight"
Re: github some cool feature
And you are right, that is exactly the usecase I had in mind. Perhaps the development download page could tell which version the current ppa has.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: github some cool feature
Not directly without some fancy webhooks I don't know.
I could add a link like I posted above in the release desciption? Would that help?
Sorry to highjack the thread bernd Your next task is to show the commits before the referenced commit. I will try -s
"fight the good fight"
Re: github some cool feature
Yes. And thanks for the effort.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.