推荐的电子邮件客户端读取/应用git补丁?

[英]Recommended email client to read/apply git patches?


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.

我花了很多时间阅读并通过git-format-patch / git-send-email发送补丁,我想知道如何改进我的工作流程。非常肯定有比GMail或Thunderbird更方便的工具。

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.

我的邮件来自IMAP服务器,因此我对解决方案非常灵活。基于文本或GUI客户端是好的,甚至是网络邮件,如果他们能够正确地完成工作。基本上我正在寻找一个好的通用电子邮件客户端,它能够轻松导出git补丁而不会破坏它们。它必须在Linux下可用。

Extra points for:

额外积分:

  • GMail-like conversations threading
  • 与GMail类似的对话线程

  • Patches highlighting (e.g. green for new lines, red for removed lines, ...)
  • 补丁突出显示(例如绿色代表新线条,红色代表删除线条,......)

  • Ability to see the patch applied to a given code base (external tools are ok as long as they can be invoked from the client itself).
  • 能够看到应用于给定代码库的补丁(只要可以从客户端本身调用外部工具就可以了)。

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!

我很惊讶没有找到类似的问题,因为这似乎是一个相当常见的使用git和电子邮件。谢谢你的建议!

1 个解决方案

#1


4  

There are three pieces to this story:

这个故事分为三部分:

  • Highlighting patch format: For example Thunderbird has a Colored Diffs add-on. Other popular email clients probably have similar add-ons.
  • 突出显示补丁格式:例如,Thunderbird具有彩色Diffs附加组件。其他流行的电子邮件客户端可能有类似的附加组件。

  • Exporting patches formated with 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.
  • 导出使用git format-patch格式化的补丁:在Thunderbird中创建一个本地文件夹或者你有什么。使用拖放或右键单击上下文菜单或任何适合您的方式将任何电子邮件复制到该文件夹​​。这会将电子邮件从IMAP服务器下载到本地计算机。

  • Applying all the patches from the local email folder: Locate the local folder withing your homedir (my Thunderbird stores it in ~/.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.
  • 应用本地电子邮件文件夹中的所有修补程序:找到包含homedir的本地文件夹(我的Thunderbird将其存储在〜/ .thunderbird / * .default / Mail / Local Folders / 中)。使用git am一次性应用所有本地导出的电子邮件中的所有补丁。然后这是你正常的Git工作流程:你检查结果,合并东西,挑选东西,扔掉东西,做你已经知道的一切。

智能推荐

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.itdaan.com/blog/2013/04/24/3a6618dc63abdc241637f273dd91c3cf.html



 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告