[mythtv-users] git & wiki

E. Westbrook mythtv-users at westbrook.com
Thu Dec 9 03:32:23 UTC 2010

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:
> mythtv-common-0.24.0+fixes.20101208.3e9463e-0ubuntu0mythbuntu1

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!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20101208/623db2af/attachment.htm>

More information about the mythtv-users mailing list