On Sat, Aug 11, 2012 at 6:15 AM, Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr> wrote:
On Sat, Aug 11, 2012 at 09:47:46AM +0200, Karim Belabas wrote:
> * Igor Schein [2012-08-07 22:51]:
> > So can that be a version string then?
> [...]
> > > The closest analog is git describe
> > > For example:
> > > $ git describe 06d4585
> > > pari-2.6-1276-g06d4585
>
> Like this ?
>
>           GP/PARI CALCULATOR Version 2.6.0 (development 1285-cc5b237)

I wouldn't mind  git-1285-cc5b237 (without prefix git the person who didn't build the binary might be confused as to what those strings mean).

>           amd64 running linux (x86-64/GMP-5.0.5 kernel) 64-bit version
>            compiled: Aug  9 2012, gcc version 4.7.1 (Debian 4.7.1-2)
>                  (readline v6.2 enabled, extended help enabled)

What about the version() GP function ?
I suppose since the VCS field is not present in stable releases,
we are not really breaking the GP API, but then I assume Igor would
like to be able to access 1276 independently. So maybe

? version()
%1 = [2,6,0,"git-06d4585",1276]

I like that idea too, but in addition to (not instead of) Karim's patch.

Thanks

Igor