From owner-freebsd-git@freebsd.org Sun May 2 12:03:15 2021 Return-Path: Delivered-To: freebsd-git@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1CAF86239CD for ; Sun, 2 May 2021 12:03:15 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [107.204.234.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FY4W61gcvz4cj4 for ; Sun, 2 May 2021 12:03:14 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.16.1/8.15.2) with ESMTP id 142C36t1010923; Sun, 2 May 2021 12:03:06 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.16.1/8.16.1/Submit) id 142C35bM010922; Sun, 2 May 2021 05:03:05 -0700 (PDT) (envelope-from david) Date: Sun, 2 May 2021 05:03:05 -0700 From: David Wolfskill To: Yasuhiro Kimura Cc: freebsd-git@freebsd.org Subject: Re: Downloading specified file through cgit Message-ID: Reply-To: freebsd-git@freebsd.org References: <20210502.203311.1220959374911462213.yasu@utahime.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FhU4Z/AOMYOwZtfo" Content-Disposition: inline In-Reply-To: <20210502.203311.1220959374911462213.yasu@utahime.org> X-Rspamd-Queue-Id: 4FY4W61gcvz4cj4 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of david@catwhisker.org designates 107.204.234.170 as permitted sender) smtp.mailfrom=david@catwhisker.org X-Spamd-Result: default: False [-4.22 / 15.00]; HAS_REPLYTO(0.00)[freebsd-git@freebsd.org]; RBL_DBL_DONT_QUERY_IPS(0.00)[107.204.234.170:from]; FREEFALL_USER(0.00)[david]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:107.204.234.170]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[catwhisker.org]; SPAMHAUS_ZRD(0.00)[107.204.234.170:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.17)[0.168]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.99)[-0.992]; RCVD_TLS_LAST(0.00)[]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:7018, ipnet:107.192.0.0/12, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-git] X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2021 12:03:15 -0000 --FhU4Z/AOMYOwZtfo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 02, 2021 at 08:33:11PM +0900, Yasuhiro Kimura wrote: > Hello All, >=20 > Assuming that following 4 items are provided, is it possible to > download corresponding file through cgit? >=20 > * Repository (e.g. src) > * Branch (e.g. main) > * Commit hash (e.g. ace7209ce04d0e4dc0e84d5e2eb27fc762e67a01) > * Path of file (e.g. /sys/conf/newvers.sh) >=20 > I tried to find it by clicking around links on the web interface of > cgit.freebsd.org but couldn't find right path. > ... I *think* so. Here's what I did: * Direct a browser to https://cgit.freebsd.org/ * Select "src" * Near the upper-right corner, there is a window for a "search" argument; copy/paste the hash there * Just to the left of that is a selection menu that defaults to "log msg". Select that; change it to "range" * Select the "search" button. * The resulting page should show a list of commit messages, the top one of which is "newvers.sh: restore reporting branch names". Select that message (click on it). * The resulting page should show the sommit message and the diff (basically, the result from "git show ace7209ce04d0e4dc0e84d5e2eb27fc762e67a01") * The page includes at least 3 links to versions of newvers.sh; at least 2 of those are the version at ace7209ce04d0e4dc0e84d5e2eb27fc762e67a01, and at least one is the prior version. The one just under the "Diffstat" link and the one shown as "b/sys/conf/newvers.sh" are at ace7209ce04d0e4dc0e84d5e2eb27fc762e67a01. Select one of them. * The resulting page shows: path: root/sys/conf/newvers.sh blob: 605e61181decd485fc6ad2bba74f6be99b4920be (plain) (blame)=20 The "(plain)" and "(blame)" are links. Right-click (button 3) the "(plain)" link; select "Save link as" and save the file. * You now have a copy of the file at ace7209ce04d0e4dc0e84d5e2eb27fc762e67a01. Peace, david --=20 David H. Wolfskill david@catwhisker.org "some of the terminology that was used, like 'hugs and kisses,' and 'very fine people,' is like very different from what I experienced and what my co-workers experienced on the 6th." - Michael Fanone, DC Metro Police Offic= er See https://www.catwhisker.org/~david/publickey.gpg for my public key. --FhU4Z/AOMYOwZtfo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEE4owz2QxMJyaxAefyQLJg+bY2PckFAmCOlPlfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUy OEMzM0Q5MEM0QzI3MjZCMTAxRTdGMjQwQjI2MEY5QjYzNjNEQzkACgkQQLJg+bY2 Pcn7Bwf/Xy17mseKNthBbc0GMxt0/CPzj09XbcoP4YzvmfYLi4ApsGfq6bMohZXq IKzzXSvMG+ol/FG8yMxTM61gfhTj6qVzBmUqxpk0HzQpqenrpXKBQEQeijkcPEtb D5qAi8uoHHqpLksrJbgAWN9E4ofF4ZqmST7WDH5W1glWJdjU752z+zUIwiCwiJAL QF0WgpP//OHSy5Q4RJVZEwuIQl1c2hhFDVlDHiP+JDq8k1vkw3XHpnPY9DIm4WqO Ax/yFZNpj0A/S7ujOVMFiyj52zvsqrBDspqpOFRsgZ2XA1xH9ziPNurGVw8WbEoz NfYOp3jiCP3YWSyc3LmCRoBq8qcgTg== =FoD5 -----END PGP SIGNATURE----- --FhU4Z/AOMYOwZtfo--