From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: [PATCH] website: packages: Anchor location url to commit id. Date: Mon, 13 Feb 2017 15:45:27 +0000 Message-ID: <20170213154527.tbiw7z4to7lumis5@wasp> References: <20170212020520.812-1-ericbavier@openmailbox.org> <87poimcg5u.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdIn4-0001fm-FP for guix-devel@gnu.org; Mon, 13 Feb 2017 10:43:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdIn1-0001CH-34 for guix-devel@gnu.org; Mon, 13 Feb 2017 10:43:46 -0500 Received: from fragranza.investici.org ([2a00:1dc0:2479::19]:32108) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cdIn0-0001Be-OE for guix-devel@gnu.org; Mon, 13 Feb 2017 10:43:43 -0500 Content-Disposition: inline In-Reply-To: <87poimcg5u.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org, ericbavier@openmailbox.org, Eric Bavier On 17-02-13 15:35:25, Ludovic Court=C3=A8s wrote: > ericbavier@openmailbox.org skribis: >=20 > > From: Eric Bavier > > > > * website/www/packages.scm (git-description): New variable. > > (location-url): Include "?id=3D..." if possible. >=20 > Looks like a good idea, please push! >=20 > Thanks, > Ludo'. >=20 As a follow-up I think we could also use this now: (string-append "//git.savannah.gnu.org/cgit/guix.git/tree/" (location-file loc) "#n" (number->string (location-line loc)))) And the same for other instances of git.savannah.gnu.org, what do you think? There are other "http" in the pages which could be replaced with // as well (for example hydra.gnu.org). --=20 ng0 -- https://www.inventati.org/patternsinthechaos/