Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 May 2021 12:50:34 +0100
From:      Graham Perrin <grahamperrin@gmail.com>
To:        freebsd-git@freebsd.org
Subject:   Re: Downloading specified file through cgit
Message-ID:  <3fc9b16b-edd0-d34f-8653-7a89da830fa4@gmail.com>
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
On 02/05/2021 12:33, Yasuhiro Kimura wrote:
> Hello All,
>
> Assuming that following 4 items are provided, is it possible to
> download corresponding file through cgit?
>
> * Repository (e.g. src)
> * Branch (e.g. main)
> * Commit hash (e.g. ace7209ce04d0e4dc0e84d5e2eb27fc762e67a01)
> * Path of file (e.g. /sys/conf/newvers.sh)
>
> I tried to find it by clicking around links on the web interface of
> cgit.freebsd.org but couldn't find right path.

For the example above:

<https://cgit.freebsd.org/src/tree/sys/conf/newvers.sh>;

To the right, a menu. Select 'range' then enter and seek the hash. Result:

<https://cgit.freebsd.org/src/log/sys/conf/newvers.sh?qt=range&q=ace7209ce04d0e4dc0e84d5e2eb27fc762e67a01>;

Whenever a path is unknown, I lean towards GitLab e.g. 
<https://gitlab.com/FreeBSD/freebsd-src/-/find_file/main>; or the 
comparable find file feature in GitHub.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3fc9b16b-edd0-d34f-8653-7a89da830fa4>