Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 2021 02:25:24 +0800
From:      Li-Wen Hsu <lwhsu@freebsd.org>
To:        Kurt Jaeger <pi@freebsd.org>
Cc:        Chris <portmaster@bsdforge.com>, freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: When will git be supported for ports?
Message-ID:  <CAKBkRUza=Wfh8%2BTFiVxwnQKYgLWHesGvnanUFQ0aw=nC9yTMvg@mail.gmail.com>
In-Reply-To: <YImmLeTF6mcc6Aln@home.opsec.eu>
References:  <08eb32f6fb033f8590a6f2b181436119@bsdforge.com> <YImmLeTF6mcc6Aln@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 29, 2021 at 2:15 AM Kurt Jaeger <pi@freebsd.org> wrote:
>
> Hi!
>
> > Maintainer for some ~160 ports, and attempting to fix some
> > bugs. But as I understand it 'git' is supposed to be the new
> > source of truth. While I know svn by heart. I have near zero
> > understanding of git, or for that matter, why anyone would
> > rather use it.
>
> The 'why' was explained here:
>
> https://github.com/bsdimp/freebsd-git-docs/
>
> But, unfortunatly, that text moved somewhere. It's a good
> first test to find out how to recover that text from the git repo 8}
> Any hints ?

That was a draft repository used before the document migrated to use AsciiD=
oc.

In the README of that repository:

"""
These changes have been pushed into the FreeBSD tree. See the committer=E2=
=80=99s guide.
https://docs.freebsd.org/en/articles/committers-guide/#git-primer
"""

> > That said; as I try to discover the new
> > procedures for maintaining ports under git. I see there isn't
> > anything in the porters-handbook regarding the acquisition
> > of the ports tree in order to get started.

I guess that was because the porter's handbook was mainly about
porting, like writing the Makefile and pkg-plist. The VCS thing was
mainly in the committer's guide. But it's nice to mention some simple
git usages which will help people submit patches. After all that's one
of the reasons and possible benefit to use git.

> > Shouldn't this be at the very beginning of the ports doc?
>
> This below should work, and I agree with you: It was hard to find out.
>
> mkdir -p somedir/ports
> cd somedir
> git clone -o freebsd \
>         --config remote.freebsd.fetch=3D'+refs/notes/*:refs/notes/*' \
>         https://git.freebsd.org/ports.git ports
>
> I'm also trying to learn more git to be able to work on the
> ports tree, but my time is limited and somehow, I still do
> not see the forest for the trees 8-(



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKBkRUza=Wfh8%2BTFiVxwnQKYgLWHesGvnanUFQ0aw=nC9yTMvg>