[mythtv-users] git & wiki

Udo van den Heuvel udovdh at xs4all.nl
Wed Dec 8 15:10:16 UTC 2010

On 2010-12-08 15:07, Ian Kent wrote:
> On Wed, 2010-12-08 at 21:57 +0800, Ian Kent wrote:
>>> E.g.: I still need to find out how to get the git commit number we're at
>>> to adjust the name of the mythtv rpms.
>> git show HEAD | head -1 | awk '{print $2}'

Hey, thanks!

>> but that shows the full commit id. You probably only want to use the
>> first 8 digits of that.

No problem.  `cut` can fix that, maybe other tricks can help here, too.

>> Other git tools get things right when the first
>> 8 digits is provided and there hasn't been any time that I have tried to
>> use just the first 8 digits that has not returned the commit I was
>> after.

OK, that is helpful info!

> Of course that assumes you have a checkout of the branch you want to
> work with.

We do.

> Oh .... suddenly, and very quickly, we need to talk about
> remote tracking branches ...... and then things start to get painful,
> read the doco.

What do you mean here?
We do a `git pull` every now and then and we have a branch that is up to

Kind regards,

More information about the mythtv-users mailing list