<div dir="ltr">I use "|".<div><br></div><div> $ cd ~/linux-source</div><div> $ mutt</div><div> (select email with patch)</div><div> |git am</div><div><br></div><div>Git applies the patch to the current directory</div><div><br></div><div>You could of course pipe to a file with "|cat 001-file.patch"</div><div><br></div><div>Last note, from gmail, one can use the "show original" menu item, and save/copy-paste the text from there. git am would understand that.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 14, 2015 at 11:04 AM, Silvan Jegen <span dir="ltr"><<a href="mailto:me@sillymon.ch" target="_blank">me@sillymon.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, Feb 14, 2015 at 03:48:53AM +0000, Anand Moon wrote:<br>
> I have configured mutt as email client.<br>
><br>
> <a href="https://github.com/narkoleptik/dotfiles/blob/master/.muttrc" target="_blank">https://github.com/narkoleptik/dotfiles/blob/master/.muttrc</a><br>
><br>
> But my configuration don't allow me to download Linux patch's from<br>
> email.<br>
<br>
I use mutt's standard functionality to get patches from emails which I<br>
did not have to configure IIRC. Depending on whether the patches have<br>
been sent inline (within the email text itself) or attached to the email<br>
I use two different methods.<br>
<br>
Inline patches:<br>
I use 'C' (if there are multiple patches you can tag all the mail<br>
messages first and then use ';C') to copy all the mail messages to a<br>
mailbox file. This mailbox file can then be read by the 'git am' command<br>
which applies all the patches (including the commit messages) to your<br>
git tree.<br>
<br>
Attached patches:<br>
Select the mail message, click 'v' and save the attached patches to disk<br>
with 's'.<br>
<br>
Hope that helps. I would like to hear if other people have more<br>
efficient workflows (using custom scripts for example)!<br>
<br>
<br>
Cheers,<br>
<br>
Silvan<br>
<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br></div>