From mboxrd@z Thu Jan 1 00:00:00 1970 From: moon.linux@yahoo.com (Anand Moon) Date: Sun, 15 Feb 2015 16:48:45 +0000 (UTC) Subject: Download patch from email. In-Reply-To: <20150215093021.GC14317@myarchbang> References: <9390101.4760919.1423885733514.JavaMail.yahoo@mail.yahoo.com> <20150214090457.GA5140@myarchbang> <20150215093021.GC14317@myarchbang> Message-ID: <1601905889.6008648.1424018925884.JavaMail.yahoo@mail.yahoo.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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 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