* Download patch from email. @ 2015-02-14 3:48 Anand Moon 2015-02-14 9:04 ` Silvan Jegen 0 siblings, 1 reply; 6+ messages in thread From: Anand Moon @ 2015-02-14 3:48 UTC (permalink / raw) To: kernelnewbies 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Download patch from email. 2015-02-14 3:48 Download patch from email Anand Moon @ 2015-02-14 9:04 ` Silvan Jegen 2015-02-15 4:44 ` Anand Moon 2015-02-15 6:11 ` Elazar Leibovich 0 siblings, 2 replies; 6+ messages in thread From: Silvan Jegen @ 2015-02-14 9:04 UTC (permalink / raw) To: kernelnewbies On Sat, Feb 14, 2015 at 03:48:53AM +0000, Anand Moon wrote: > 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Download patch from email. 2015-02-14 9:04 ` Silvan Jegen @ 2015-02-15 4:44 ` Anand Moon 2015-02-15 6:11 ` Elazar Leibovich 1 sibling, 0 replies; 6+ messages in thread From: Anand Moon @ 2015-02-15 4:44 UTC (permalink / raw) To: kernelnewbies 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 <me@sillymon.ch> wrote: On Sat, Feb 14, 2015 at 03:48:53AM +0000, Anand Moon wrote: > 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Download patch from email. 2015-02-14 9:04 ` Silvan Jegen 2015-02-15 4:44 ` Anand Moon @ 2015-02-15 6:11 ` Elazar Leibovich 2015-02-15 9:30 ` Silvan Jegen 1 sibling, 1 reply; 6+ messages in thread From: Elazar Leibovich @ 2015-02-15 6:11 UTC (permalink / raw) To: kernelnewbies I use "|". $ cd ~/linux-source $ mutt (select email with patch) |git am Git 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. On Sat, Feb 14, 2015 at 11:04 AM, Silvan Jegen <me@sillymon.ch> wrote: > On Sat, Feb 14, 2015 at 03:48:53AM +0000, Anand Moon wrote: > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150215/2c558c6b/attachment.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Download patch from email. 2015-02-15 6:11 ` Elazar Leibovich @ 2015-02-15 9:30 ` Silvan Jegen 2015-02-15 16:48 ` Anand Moon 0 siblings, 1 reply; 6+ messages in thread From: Silvan Jegen @ 2015-02-15 9:30 UTC (permalink / raw) To: kernelnewbies On Sun, Feb 15, 2015 at 08:11:51AM +0200, Elazar Leibovich wrote: > I use "|". > > $ cd ~/linux-source > $ mutt > (select email with patch) > |git am > > Git 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! > 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Download patch from email. 2015-02-15 9:30 ` Silvan Jegen @ 2015-02-15 16:48 ` Anand Moon 0 siblings, 0 replies; 6+ messages in thread From: Anand Moon @ 2015-02-15 16:48 UTC (permalink / raw) To: kernelnewbies 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 <me@sillymon.ch> wrote: On Sun, Feb 15, 2015 at 08:11:51AM +0200, Elazar Leibovich wrote: > I use "|". > > $ cd ~/linux-source > $ mutt > (select email with patch) > |git am > > Git 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! > 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-02-15 16:48 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-02-14 3:48 Download patch from email Anand Moon 2015-02-14 9:04 ` Silvan Jegen 2015-02-15 4:44 ` Anand Moon 2015-02-15 6:11 ` Elazar Leibovich 2015-02-15 9:30 ` Silvan Jegen 2015-02-15 16:48 ` Anand Moon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).