On Thu, 2010-10-07 at 13:43 +0100, Ross Burton wrote:
> Is there a best-practise for versioning a git snapshot?
> 
> At the moment I'm working towards something like:
> 
> [new release number]~[commit count].g[commit hash abbrev]
> 
> (inspired by git-describe HEAD)
> 
> So if we'd packaged 0.1, then a git snap would be 0.2~42.g123456.
> 
> Ross
> _______________________________________________
> MeeGo-packaging mailing list
> [email protected]
> http://lists.meego.com/listinfo/meego-packaging

I'm no expert but...

Using your example, I would recommend you don't use the full new version
number as it will conflict with the actual final release.

So using your example I would say use:

0.1.99_42.g123456

Or use the date in there somewhere.

Also something to keep in mind is that when packaging there are certain
charachters in file names that can cause issues, I forget exactly what
they all are, but I'm sure ~ is one of them.

Regards,

Andy

-- 
Andrew Wafaa
IRC: FunkyPenguin.
GPG: 0x3A36312F
openSUSE: Get It, Discover It, Create It at http://www.opensuse.org

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
MeeGo-packaging mailing list
[email protected]
http://lists.meego.com/listinfo/meego-packaging

Reply via email to