Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 May 2021 05:03:05 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        Yasuhiro Kimura <yasu@utahime.org>
Cc:        freebsd-git@freebsd.org
Subject:   Re: Downloading specified file through cgit
Message-ID:  <YI6U%2BUPH4AZrWTir@albert.catwhisker.org>
In-Reply-To: <20210502.203311.1220959374911462213.yasu@utahime.org>
References:  <20210502.203311.1220959374911462213.yasu@utahime.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YI6U%2BUPH4AZrWTir>