Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 2017 16:46:29 +0200
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        "O. Hartmann" <ohartmann@walstatt.org>, Yuri <yuri@rawbw.com>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: [ports]: GH_TAGNAME: how to figure out this tagname on downloadable archives?
Message-ID:  <c677889a-41c3-5105-4f87-f0159d0f65d1@FreeBSD.org>
In-Reply-To: <20171015214725.68e32dd9@thor.intern.walstatt.dynvpn.de>
References:  <20171015211940.44065925@thor.intern.walstatt.dynvpn.de> <19aa7f0a-3b52-5d34-cf80-136ef3fe489b@rawbw.com> <20171015214725.68e32dd9@thor.intern.walstatt.dynvpn.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--THWgiN1onM1SkxLahh1SLpf3FOb7NWDMp
Content-Type: multipart/mixed; boundary="sp8OXrBBURETkAOWV8pFr7qWxNrc2TSxw";
 protected-headers="v1"
From: Mathieu Arnold <mat@FreeBSD.org>
To: "O. Hartmann" <ohartmann@walstatt.org>, Yuri <yuri@rawbw.com>
Cc: FreeBSD Ports <freebsd-ports@freebsd.org>
Message-ID: <c677889a-41c3-5105-4f87-f0159d0f65d1@FreeBSD.org>
Subject: Re: [ports]: GH_TAGNAME: how to figure out this tagname on
 downloadable archives?
References: <20171015211940.44065925@thor.intern.walstatt.dynvpn.de>
 <19aa7f0a-3b52-5d34-cf80-136ef3fe489b@rawbw.com>
 <20171015214725.68e32dd9@thor.intern.walstatt.dynvpn.de>
In-Reply-To: <20171015214725.68e32dd9@thor.intern.walstatt.dynvpn.de>

--sp8OXrBBURETkAOWV8pFr7qWxNrc2TSxw
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Language: fr

Le 15/10/2017 =C3=A0 21:47, O. Hartmann a =C3=A9crit=C2=A0:
> Am Sun, 15 Oct 2017 12:35:49 -0700
> Yuri <yuri@rawbw.com> schrieb:
>
>> On 10/15/17 12:19, O. Hartmann wrote:
>>> Out of the blue there is a so called GH_TAGNAME. It reflects some lat=
e commit/revision
>>> number on an archive. Now I try to figure out how to find such a GH_T=
AGNAME. Since I
>>> do not push stuff to github, it is some new playfield and there might=
 be an easy way
>>> to figure out, but this way is obscured to me right now. =20
>>
>> GH_TAGNAME is the git commit hash, a hexadecimal number. github shows =
them for every
>> commit. Usually, 7 first characters suffice. GH_TAGNAME overrides the =
port version when
>> tarball is fetched. Just copy and paste it. :-)
>>
>>
>> Yuri
>>
> Hello, thanks for your response,
>
> all right, that is what I picked up from the porter's handbook, but I m=
ust have
> overlooked the note (if there is anything like that) regarding the suff=
icient first 7
> digits.

The first 7 digits may, or may not be sufficient. 7 is a magic number,
and should not be used. You should, instead, ask git directly what the
abbreviation should be with, for instance, `git log --abbrev-commit`.=C2=A0=

It may give you a number that seven digits long, but it may very well
give you a longer one. I repeat, do not simply truncate a hash to its
first 7 digits, it may not be enough.

--=20
Mathieu Arnold



--sp8OXrBBURETkAOWV8pFr7qWxNrc2TSxw--

--THWgiN1onM1SkxLahh1SLpf3FOb7NWDMp
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJZ5MZHXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz
QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85IXGQQAL1NgBmLQ7oI7cEQBvqi9MHg
dIEgTm8w2X3M8FQ1Ngy/qsyDUsimmj0G3OE7o7eXWBNzrKCSLhFDX2fX4pZDR5+U
U83+RztlAIG7Vs/HXe8Y92STBUqstS4aDHrn3ciXTMOJ730oWMjRZ3CMFUl4Q99I
DlvaDEuw/bbMbl4GQWQjB3FRC9DTRZgIysCMzfx2KJN0bv5yE6T7fZ0n8z8RGWF2
PstyCBJVE4Mlupzg4ms5FaaQAzrTEKO/5evVWZAimFCmnU7PLSAxaATHe7d59U+f
OakzgdCDlZv/SNf/4O30FGenowND/0mSeQo3fNbB3hjpQzLs03AuhCodhM3fnGS1
ITBImOasnvLOjw6nIqkLk1wmaRArpAJBS3dNzRba81OBpWFCkXu5TPiG8gGBNM1f
CyGVl4DuoZbajaX5AyFeZtArAwGCvs8VSnRiRY7ZFvCEUF5JH7uNNyk95qC0x3Zz
xAkVvkC2f+9mvkjoiHa4Pduv2ctRaHgDfEVNWN8FFlIqxXf7c/PZymZVrZLWNO/U
Rqd9CNZ0IymxRR1ejbSa4qJVK2a2o5VnqshEofgsGIcylofdmH6TOTzkf/AolgCH
5ric3DWS+cz3x/ri+WPXgt55CSrjfQfeLdSkRzUW9/rLquPjJ6RyJocsn7sagMsR
ed5pR7tTLUkqqxoQgHFl
=QB9c
-----END PGP SIGNATURE-----

--THWgiN1onM1SkxLahh1SLpf3FOb7NWDMp--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c677889a-41c3-5105-4f87-f0159d0f65d1>