Date: Tue, 10 Jul 2018 20:47:53 +0800 From: blubee blubeeme <gurenchan@gmail.com> To: Brooks Davis <brooks@freebsd.org> Cc: Michael Gmelin <freebsd@grem.de>, FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: git checkout branch in makefile Message-ID: <CALM2mEmywsjVPUGSXP0eA-%2BuV6J-Nm8mr2uT_sdYbWrkfz5rXA@mail.gmail.com> In-Reply-To: <20180710101505.GF85898@spindle.one-eyed-alien.net> References: <CALM2mE=WNRM=2P4k=xZgpE5GXutW8OTo61kAaFRViuLcx0S%2BnA@mail.gmail.com> <C1ECC73F-6B19-4349-905A-3D0472DFF40A@grem.de> <20180710101505.GF85898@spindle.one-eyed-alien.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 10, 2018 at 6:15 PM Brooks Davis <brooks@freebsd.org> wrote: > On Mon, Jul 09, 2018 at 08:19:13PM +0200, Michael Gmelin wrote: > > > > > > > On 9. Jul 2018, at 19:34, blubee blubeeme <gurenchan@gmail.com> wrote: > > > > > > Is it possible to do a git checkout of a specific branch in a ports > > > makefile? > > > > > > How would I go about checking out a particular branch from a github > project. > > > > As branches aren???t stable this won???t buy you anything, that???s why > you should always go for a tag or commit (which is branch agnostic). > > If you want to make it easy to update to the latest commit on a branch, > take > a look at devel/llvm-devel/files/gen-Makefile.snapshot.sh for an example > of automatically extracting that information from the github API. > > -- Brooks > That's actually pretty neat stuff, thanks for the reference.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALM2mEmywsjVPUGSXP0eA-%2BuV6J-Nm8mr2uT_sdYbWrkfz5rXA>