Date: Mon, 10 May 2021 11:21:43 +0200 From: =?UTF-8?B?VMSzbA==?= Coosemans <tijl@FreeBSD.org> To: Mathieu Arnold <mat@freebsd.org> Cc: Muhammad Moinur Rahman <bofh@freebsd.org>, "ports@freebsd.org" <ports@freebsd.org> Subject: Re: Preferred way of repocopy in terms of git Message-ID: <20210510112143.7cf635e0@FreeBSD.org> In-Reply-To: <20210510073056.ixl6ypq3bgrp6nco@aching.in.mat.cc> References: <953F2827-FE7C-4286-B6D5-867382A436C7@freebsd.org> <20210510073056.ixl6ypq3bgrp6nco@aching.in.mat.cc>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 10 May 2021 09:30:56 +0200 Mathieu Arnold <mat@freebsd.org> wrote: > On Fri, May 07, 2021 at 11:32:48PM +0600, Muhammad Moinur Rahman wrote: >> What is the preferred way of doing ports repocopy in git? In the hard >> way I can see moving it into two locations and merging them. But is >> there any easier way of doing it? > > Well, here is what I did when I added lang/perl5.34: > > cp -R lang/perl5-devel lang/perl5.34 > # change stuff > git add lang/perl5.34 > git commit > > I don't really see any other way to do this, Git has absolutely no clue > about copies or moves. It might still be useful to do the copy and changes as two separate commits. Even if git doesn't do anything with that, our next vcs might and reconstructing copy history is faster and less error prone with unmodified copies.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210510112143.7cf635e0>