I spend a good time of the day reading and applying patches send through git-format-patch/git-send-email and I wonder how I could improve my workflow. Very certainly there are more convenient tools than GMail or Thunderbird for doing that.
My mail comes from an IMAP server, so I am rather flexible with respect to the solution. Text-based or GUI clients are fine, even webmails if they do the job right. Basically I'm looking for a good general-purpose email client that is capable of exporting git patches easily without ruining them. It has to be usable under Linux.
Extra points for:
I have been surprised to not find a similar question since this seems like a rather common use of git and email. Thanks for your suggestions!
You can apply a patch as a commit from a mail message following these steps: Open the GMail web page in the message with patch data. Click at the ellipsis icon located at top-right of this message. Click at "Show Original".
GIT patch or GIT diff is used to share the changes made by you to others without pushing it to main branch of the repository. This way other people can check your changes from the GIT patch file you made and suggest the necessary corrections.
The command refuses to process new mailboxes until the current operation is finished, so if you decide to start over from scratch, run git am --abort before running the command with mailbox names.
There are three pieces to this story:
git format-patch
: Create a local folder in your Thunderbird or what have you. Copy any email messages to that folder using drag-and-drop or right click contextual menu or whatever suits you. This will download the emails from the IMAP server to your local machine.~/.thunderbird/*.default/Mail/Local Folders/<Folder name>
). Apply all the patches from all the locally exported emails in one go using git am
. Then it's your normal Git workflow: you examine the result, merge stuff, cherry-pick stuff, throw away stuff, and do everything you already know.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With