converting rmport to git

Warner Losh imp at bsdimp.com
Mon Nov 30 18:52:45 UTC 2020


On Mon, Nov 30, 2020 at 4:57 AM Mathieu Arnold <mat at freebsd.org> wrote:

> On Mon, Nov 30, 2020 at 10:53:37AM +0000, Rene Ladan wrote:
> > OK, I'll rewrite the script to use the branch workflow. This does assume
> > having an existing clone of the git repository present, but I guess that
> > is a safe assumption if you are a ports committer :)
>
> You really should not to worry about branches, the script could emit a
> warning if it runs on the default branch, which will be something like
> "main" but the script should not worry about all that, it should just
> assume it has the checkout of the thing you need to remove ports from,
> let the user worry about working on some branch or not.
>

A clean tree is the only real requirement, and all you need to check for /
assume.

However, it would be nice to allow for the steps to create a branch and/or
worktree, if desired. There are times you'd want to run this in a mode that
just does it and then you push. And there's times you need to run more
extensive testing / regression. Automating the branching dance would allow
for that. Making it optional would address the likely more typical case of
'I just want to remove this port'.

Warner


More information about the freebsd-git mailing list