how to efficiently work through generating patches using git and macports build process?

Ken Cunningham ken.cunningham.webuse at gmail.com
Wed Aug 30 16:37:14 UTC 2017


> 
>    cd $(port work foo)
>    cd foo-version
>    sudo git init .
>    sudo git add -A
>    <make edits>
>    git diff > /tmp/my-patches.diff
> 
> And more or less make sure that you don't do "sudo port -v install"
> without, say the "-k" flag to keep the files before your run "git
> diff".
> 

This is what I'm talking about, yes.

I notice you didn't make a branch and check it out --> just `git add -A` and then diff it in the end. I didn't know you could do it like that.

Thanks for the pointers. I'll give this a try!

Ken



More information about the macports-dev mailing list