`git describe`

Rainer Müller raimue at macports.org
Tue Nov 29 15:31:00 CET 2016


On 2016-11-29 15:01, Davide Liessi wrote:
> 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

Probably should use committer date (%cd) instead of author date (%ad).
The latter is not always monotonically increasing, for example when pull
requests were rebased onto master in a different order.

Rainer


More information about the macports-dev mailing list