Pierrick Bouvier <pierrick.bouv...@linaro.org> writes: > On 11/19/24 00:41, Marcin Juszkiewicz wrote: >> W dniu 18.11.2024 o 18:23, Pierrick Bouvier pisze: >>> Signed-off-by: Pierrick Bouvier <pierrick.bouv...@linaro.org> >>> --- >>> docs/devel/submitting-a-patch.rst | 14 ++++++++++++++ >>> 1 file changed, 14 insertions(+) >>> >>> diff --git a/docs/devel/submitting-a-patch.rst >>> b/docs/devel/submitting-a-patch.rst >>> index 349c32ee3a9..953682f20cb 100644 >>> --- a/docs/devel/submitting-a-patch.rst >>> +++ b/docs/devel/submitting-a-patch.rst >>> @@ -237,6 +237,20 @@ attachments can be used as a last resort on a >>> first-time submission. >>> .. _if_you_cannot_send_patch_emails: >>> +Use git-publish >>> +~~~~~~~~~~~~~~~ >>> + >>> +If you already configured git send-email, you can simply use `git-publish >>> +<https://github.com/stefanha/git-publish>`__ to send series. >>> + >>> +:: >>> + >>> + $ git checkout master -b my-feature >>> + $ # work on new commits, add your 'Signed-off-by' lines to each >>> + $ git publish >>> + $ ... more work, rebase on master, ... >>> + $ git publish # will send a v2 >> You recommend 'b4 shazam' in 3/7 patch so why not here? Both 'b4' >> and >> 'git-publish' seem to do same stuff - handle patch series and send them >> upstream. >> > > Are you using b4 for your QEMU contributions? > > When I started working on QEMU, I tried it before git-publish and had > an error when trying to send my series. I don't remember exactly what > it was, but something related to finding the reviewers for a given > commit. When I asked, team members pointed me towards git-publish.
I tend to use b4 to apply patches because it works well with the archives and collects together the tags for you. I have not used it to publish patches to the list. My sending workflow used done manually (rather via my carefully customised Emacs org workflow) but now I just use git publish to send series to the list. I still occasionally use git send-email directly for sending individual patches with something like: git send-email --subject-prefix="RFC PATCH" --to qemu HEAD^.. I still send pull requests by hand: git send-email --confirm=never --quiet ${mailto} ${series}.pull/* but thats probably because I haven't figured out the steps for git publish to do that. Anyway tldr; b4 to apply *from* list, git publish to send *to* list. > >> b4 allows to keep To/Cc emails inside of cover letter which makes it >> easy to not miss anyone needed. > > git-publish works pretty well for me, and does what you expect (keep > your cover letter/cc and track your versions). -- Alex Bennée Virtualisation Tech Lead @ Linaro