On 5/3/22 00:12, Traian Coza wrote:
Hi! I am new to contributing to FFmpeg, and I have a technical question.
I'm trying to submit a patch, but it's a fairly large patch, which I've
made in multiple commits. I don't know how to generate the email for this
patch. The example command given on the website (with format-patch) only
generates the email for a single commit. I've searched the web and I don't
really see an easy way to do it. Can someone help me out with this?
I find the easiest way to do it for me is to generate the patches with
"git format-patch" and then send them with "git send-email".
Once you have your patches atop the master branch, you can create a
directory called outgoing/ and then run something like:
git format-patch -M -o outgoing/ --cover-letter origin/master
In this case, --cover-letter generates a cover letter, which you then
edit to give a short blurb of what your patch set looks like. Then when
you run git send-email outgoing/* you will have the patches embedded as
replies to that cover letter email. "origin/master" is the hash of the
last commit *before* yours, but it can by any ref, such as
origin/master, not just a commit hash. You can also just substitute the
commit hash there if your repositories/branches are named differently.
Since you use Gmail (at least, from your email address), you will need
to enable Less Secure Apps if you have two-factor authentication
disabled. If you have it enabled, you will have to generate an App
Password for git-send-email, and then use that as the account password
instead of your own.
- Leo Izen (thebombzen)
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".