git checkout branch in makefile

Brooks Davis brooks at freebsd.org
Tue Jul 10 10:15:13 UTC 2018


On Mon, Jul 09, 2018 at 08:19:13PM +0200, Michael Gmelin wrote:
> 
> 
> > On 9. Jul 2018, at 19:34, blubee blubeeme <gurenchan at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20180710/f3cae045/attachment.sig>


More information about the freebsd-ports mailing list