Re: Git Package Versioning
Hi,
Le dimanche 20 mars 2011 à 21:18:43 (+0100 CET), Chris a écrit :
> Can anyone point me in the direction of a appropriate package versioning
> scheme when packaging software taken directly from a git vcs?
The best I have found is to use something like:
<latest_upstream_release>+gitYYYYMMDD.<githash>
You need the date as the git hash are not sorted, and the date alone doesn't
make sense in case you need to package 2 snapshots at the same date.
I use the abbreviated hash and get the last commit as follows:
git log -1 --format='%cd.%h' --date=short | sed 's/-//g'
Cheers,
Julien
--
.''`. Julien Valroff ~ <julien@kirya.net> ~ <julien@debian.org>
: :' : Debian Developer & Free software contributor
`. `'` http://www.kirya.net/
`- 4096R/ E1D8 5796 8214 4687 E416 948C 859F EF67 258E 26B1
Reply to: