On Thu, May 7, 2020 at 3:54 PM clime <clime@fedoraproject.org> wrote:
<snip>

> In the rare occasion that I need to make downstream-only changes with
> patches, I usually just explode the upstream tarball, run "git init",
> then "git add .", "git commit -m import", apply my changes, and then
> do "git diff --patch > ../00-my-changes.patch" (if it's just one
> commit), or "git format-patch -o ../" if there are multiple commits,
> and then delete the exploded sources again.

In any case, I think this functionality could be included in rpkg/fedpkg...?

If there are no objections, I will open a ticket for this.

It took me a bit to figure it out but I use quilt instead. It doesn't perfectly integrate with rpmbuild/dist-git but it works well enough. 

There are two big nits I have...
1. If one patch fails to apply it stops there, so I have to go in and fix/refresh it, then back out, rm -rf the source directory, and re-quilt setup <spec>.
2. If you don't have any patches yet they are only generated in <src>/patches and not created in the dist-git directory.

Thanks,
Richard