On Fri, Feb 15, 2013 at 10:00 AM, Tom Hacohen <[email protected]> wrote: > On 15/02/13 11:49, Doug Newgard wrote: >> m4/efl.m4 is still trying to call svnversion or git-svn-id to get the >> dev_version. >> >> I don't have an easy fix, git doesn't have anything quite like the svn >> revisions. >> git describe can get you the count of the number of commits since the last >> annotated tag, but there are no tags in the EFL git repo yet. >> >> Just wanted to make people aware. It only shows up as an error if you don't >> have svn installed, so I figured it might not get noticed right away. > > Haha, so funny. I just thought about it as well (been trying to figure > this out for the last couple of minutes). > > The thing is, that there's git describe. Git describe can give the > version information easily. For example, from the 1.7 branch: > v1.7.5-21-ga0f2638 > > i.e, head is 21 commits after the tag, it's commit hash is ga0... and etc. > > The problem with that is that we have "revision" as int in Eina_Version, > and that obviously doesn't work well with strings. > > Daniel and I have been trying to think about it. I say we can try to use > git describe when it works (just get the "count after tag"), and when it > doesn't (i.e if there are no tags) count the commits in the history in > order to get a count. This is not perfect, but can work. >
Hmm, there is a git rev-list which can give the number of commits of a branch, but of course it is not tied to the svn revision, for instance git rev-list --count HEAD > What do you guys think? > > -- > Tom. > > ------------------------------------------------------------------------------ > Free Next-Gen Firewall Hardware Offer > Buy your Sophos next-gen firewall before the end March 2013 > and get the hardware for free! Learn more. > http://p.sf.net/sfu/sophos-d2d-feb > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Eduardo de Barros Lima ◤✠◢ [email protected] ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
