`git describe`

Davide Liessi davide.liessi at gmail.com
Tue Nov 29 15:01:51 CET 2016


2016-11-29 14:49 GMT+01:00 René J.V. Bertin <rjvbertin at gmail.com>:
> On Tuesday November 29 2016 13:28:27 Clemens Lang wrote:
>> You can just use
>>  [vercmp $macports_version 2.3.4] > 0
>>to check whether a bugfix you need is available.
>
> Which will always succeed if you're using a MacPorts base built from master, no matter how long that was ago.

What would you think of a version number of the form
2.3.99-YYYYMMDD-shorthash, or 2.3.99-unixtime-shorthash?

See
git log -1 --format=%at-%h
and
git log -1 --date=format:%Y%m%d --format=%ad-%h

Best wishes.
Davide


More information about the macports-dev mailing list