Download patch from email.
Hi All,
I have configured mutt as email client.
https://github.com/narkoleptik/dotfiles/blob/master/.muttrc
But my configuration don't allow me to download Linux patch's from email.
Please some one could point out the configuration or suggest other email client.
-Anand Moon
Quoted 6 lines · Anand Moon
I have configured mutt as email client.
https://github.com/narkoleptik/dotfiles/blob/master/.muttrc
But my configuration don't allow me to download Linux patch's from email.
I use mutt's standard functionality to get patches from emails which I did not have to configure IIRC. Depending on whether the patches have been sent inline (within the email text itself) or attached to the email I use two different methods.
Inline patches:
I use 'C' (if there are multiple patches you can tag all the mail messages first and then use ';C') to copy all the mail messages to a mailbox file. This mailbox file can then be read by the 'git am' command which applies all the patches (including the commit messages) to your git tree.
Attached patches:
Select the mail message, click 'v' and save the attached patches to disk with 's'.
Hope that helps. I would like to hear if other people have more efficient workflows (using custom scripts for example)!
Cheers,
Silvan
Hi Silvan,
Thanks for your input.
I got following link which could be uses full for beginner.
pwclient can be used for example to retrieve patches, search the queue or update the state.
http://www.openembedded.org/wiki/Patchwork
http://www.linuxplumbersconf.org/2011/ocw/system/presentations/255/original/patchwork.pdf
-Anand Moon
On Saturday, February 14, 2015 2:38 PM, Silvan Jegen <[email protected]> wrote:
Quoted 6 lines · Anand Moon
I have configured mutt as email client.
https://github.com/narkoleptik/dotfiles/blob/master/.muttrc
But my configuration don't allow me to download Linux patch's from email.
I use mutt's standard functionality to get patches from emails which I did not have to configure IIRC. Depending on whether the patches have been sent inline (within the email text itself) or attached to the email I use two different methods.
Inline patches:
I use 'C' (if there are multiple patches you can tag all the mail messages first and then use ';C') to copy all the mail messages to a mailbox file. This mailbox file can then be read by the 'git am' command which applies all the patches (including the commit messages) to your git tree.
Attached patches:
Select the mail message, click 'v' and save the attached patches to disk with 's'.
Hope that helps. I would like to hear if other people have more efficient workflows (using custom scripts for example)!
Cheers,
Silvan
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
I use "|".
$ cd ~/linux-source
$ mutt
(select email with patch)
|git amGit applies the patch to the current directory
You could of course pipe to a file with "|cat 001-file.patch"
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.
Quoted 30 lines · Silvan Jegen
Quoted 6 lines · Anand Moon
I have configured mutt as email client.
https://github.com/narkoleptik/dotfiles/blob/master/.muttrc
But my configuration don't allow me to download Linux patch's from email.
I use mutt's standard functionality to get patches from emails which I did not have to configure IIRC. Depending on whether the patches have been sent inline (within the email text itself) or attached to the email I use two different methods.
Inline patches:
I use 'C' (if there are multiple patches you can tag all the mail messages first and then use ';C') to copy all the mail messages to a mailbox file. This mailbox file can then be read by the 'git am' command which applies all the patches (including the commit messages) to your git tree.Attached patches:
Select the mail message, click 'v' and save the attached patches to disk with 's'.Hope that helps. I would like to hear if other people have more efficient workflows (using custom scripts for example)!
Cheers,
Quoted 8 lines
Silvan
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150215/2c558c6b/attachment.html
Quoted 8 lines · Elazar Leibovich
I use "|".
$ cd ~/linux-source $ mutt (select email with patch) |git amGit applies the patch to the current directory
Ah, I knew about '|' but I did not know that git am can read from stdin as well, nice!
Quoted 2 lines
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.
Yes, I do that when I am not on my computer... I think all webmail clients I have used do have a 'Show original' (or similar) option whose text you can just copy paste.
Cheers,
Silvan
Hi All,
I debug a bit more on the patchwork "pwclient" approach.
https://patchwork.kernel.org/help/pwclient/
Here are steps how to setup.
Download the ".pwclientrc" from the project dir you want to download patches from.
For example I downloaded from the following link.
https://patchwork.kernel.org/project/linux-samsung-soc/
After that I checkout the "git clone git://ozlabs.org/home/jk/git/patchwork"
ubuntu at arm:~/study/patchwork$ ./apps/patchwork/bin/pwclient list -n 4
ID State Name -- ----- ---- 2076111 New [v2] ARM: dts: Add node for GMAC for exynos5440 2076251 New ARM: S3C24XX: Remove plat-s3c24xx directory in arch/arm/ 2076701 New ARM: EXYNOS5: Fix PMU register configuration for local power blocks 2079361 New [v3,1/5] ARM: dts: Add FIMD node to exynos4
Now if I can download the patch with respect to id's
ubuntu at arm:~/study/patchwork$ ./apps/patchwork/bin/pwclient get 2079361 Saved patch to v3-1-5-ARM-dts-Add-FIMD-node-to-exynos4.patch ubuntu at arm:~/study/patchwork$
After this we can use git am command to apply the patch.
This seams to easy approach to me.
-Anand Moon
On Sunday, February 15, 2015 3:01 PM, Silvan Jegen <[email protected]> wrote:
Quoted 8 lines · Elazar Leibovich
I use "|".
$ cd ~/linux-source $ mutt (select email with patch) |git amGit applies the patch to the current directory
Ah, I knew about '|' but I did not know that git am can read from stdin as well, nice!
Quoted 2 lines
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.
Yes, I do that when I am not on my computer... I think all webmail clients I have used do have a 'Show original' (or similar) option whose text you can just copy paste.
Cheers,
Silvan
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies