Extract patch from kernel mailing list
Hi, You copy the patch out of the mail, open a <whatever>.patch file in your editor, paste it in there, save the file and then use, the patch command with that file as input. There might be tools that make that easier but they might need some setup, this is clearly the easiest if it's a one shot thing. Maybe some mail clients allow you to save the file directly -- Richard On 06/10/2022 10:21, neutrino network wrote:
Hello,
How to extract patches from the kernel mailing list?
Best.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Thu, Oct 06, 2022 at 01:21:04PM +0500, neutrino network wrote:
Hello,
How to extract patches from the kernel mailing list?
If you do it frequently and want a convenient tool to do it, I suggest you look at b4: https://b4.docs.kernel.org/en/stable-0.10.y/ -K
On Thu, Oct 6, 2022 at 9:09 PM Konstantin Ryabitsev < konstantin@linuxfoundation.org> wrote:
On Thu, Oct 06, 2022 at 01:21:04PM +0500, neutrino network wrote:
Hello,
How to extract patches from the kernel mailing list?
If you do it frequently and want a convenient tool to do it, I suggest you look at b4: https://b4.docs.kernel.org/en/stable-0.10.y/
-K
Thank you all, using "b4" to extract the mbox and "git am" to apply on target repo was helpful. Sharing steps; - Get message ID from the email posted on KML with patch/es - Clone linux repo, git clone git:// git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git - Get mbox of your KML patches; - yum install b4 - b4 am <email-message-id> /*Generate mbox id at end, starting with "git am" command*/ - git am ./<b4-generated-mbx-id>.mbx /*Copy paste the command after your b4 am completed succesfully*/ - It will apply all the patches in the series on your local linux repository cheers.
participants (3)
-
Konstantin Ryabitsev -
neutrino network -
Richard