Ports Repocopy

Rene Ladan rene at freebsd.org
Mon Feb 22 20:35:01 UTC 2021


On Mon, Feb 22, 2021 at 11:45:12AM -0800, Cy Schubert wrote:
> When ports switches to GIT, given that there is no GIT equivalent to svn 
> copy will repocopy become a thing of the past? Will we live with this or 
> will there be some kind of procedure ports committers must follow to 
> approximate a repocopy?
> 
There is indeed no "git cp", only "git mv", so unless I'm mistaken repocopies
will be a past thing. It might be possible to (credits to portmgr):
- create a branch,
- copy/move the files and commit the copy/moves without any changes,
- change the stuff,
- commit,
- merge into the main branch.

Similar for resurrecting a port:
- create a branch from before the port was removed,
- change stuff,
- commit,
- merge into the main branch (using something like "git merge -s their" so
  that the resurrection branch overwrites the removal)

But this would warrant a new script if it turns out to be feasible. I have not
tried this yet.

René


More information about the freebsd-git mailing list