[mythtv-users] git & wiki
glemsom at gmail.com
Thu Dec 9 06:09:49 UTC 2010
2010/12/9 E. Westbrook <mythtv-users at westbrook.com>:
> On Wed, Dec 8, 2010 at 20:11, Nick Rout <nick.rout at gmail.com> wrote:
>> > But won't a variable length commit number cause havoc with things like
>> > rpm version comparisons. I guess there's a need to ensure that the
>> > version string components used allow for a previous component that is
>> > always increasing.
>> mythbuntu is now numbering by date yyyymmdd then a hash number, eg:
> Just as another way: To keep it numeric, increasing, and consistent, I'm
> currently numbering my Gentoo ebuilds using the unix integer commit
> timestamp of the commit at the point in question, which I can capture when
> checked out to the right HEAD using:
> $ echo 0.24.$(git log -n1 --pretty="format:%ct")
> In reverse, I obtain the commit hash from that point in time on that branch
> $ echo $(git log -n1 --pretty="format:%H" --since=1291777173
> hash = ee57332927393d071d7b3f1788476f07c77f7e82
> which is great for direct checkout or use with github's tarball URL feature.
> Git is fun, isn't it!
If you have a working solution for ebuilds on Gentoo - could you
please share your findings here:
More information about the mythtv-users