stgit icon indicating copy to clipboard operation
stgit copied to clipboard

stg mail: If there's a "---" line in the patch description, put everything after it after the "---" in the email

Open dhowells opened this issue 2 years ago • 2 comments

When sending Linux kernel patches, the patch changelog is meant to go after the "---" that divides the description from the patch body and additional notes (including the diffstat). But there's no obvious way to make stgit do this short of editing each patch as stg mail is sending them.

Can stg mail be made to recognise a "---" line in the description and put everything after it after the "---" line in the message it is sending?

dhowells avatar Jan 18 '23 09:01 dhowells

Since you're referencing stg mail, can I assume you're using StGit 1.x?

In StGit 2.0, stg mail was replaced with stg email format and stg email send which are thin wrappers around git format-patch and git send-email, respectively.

For reference, issue #243 is a related issue that was repaired for StGit 2.1.

I am not doing any maintenance on StGit 1.x, but if there remain issues with email-based workflows in StGit 2.x, I am happy to help get them resolved.

jpgrayson avatar Jan 18 '23 14:01 jpgrayson

I've tried this with stgit-2.1 and the same thing seems to occur. I'm now using "git notes".

dhowells avatar Jan 19 '23 15:01 dhowells