{"thread":{"id":"16810","subject":"Applying patches from a patch set","startedAt":"2008-12-20T14:37:42Z","lastAt":"2008-12-23T11:25:17Z","messageCount":7,"participants":["Mark Ryden","Jakub Narebski","Junio C Hamano","Sitaram Chamarty"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"98439","messageId":"dac45060812200637m49c71aa5x3c25010fa00f4a63@mail.gmail.com","threadId":"16810","inReplyTo":null,"subject":"Applying patches from a patch set","fromName":"Mark Ryden","fromEmail":"markryde@gmail.com","sentAt":"2008-12-20T14:37:42Z","receivedAt":"2008-12-20T14:37:42Z","isPatch":false,"sender":{"key":"markryde@gmail.com","avatar":null},"body":"Hello,\n  I am subscribed to some linux kernel subsystem mailing list; in this\nlist there are sometimes patchsets with more than\n30-40 patches.\nI am using gmail web interface client.\n\nIn order to apply a patch set I copy and paste each patch from the\npatchset into a file, and then apply that patch.\nI assume that there is a better way.\nRecently I encountered a fatal error when doing so (and I am not sure\nwhat caused it).\n\nSo my question is: does anyone know a more elegant way of applying a\nlarge patchset ?\nMaybe there is better mail client with which this process can be done easily ?\n\n(I remember there was something called git apply-mbox in the past).\n\nRgs,\nMark\n"},{"id":"98444","messageId":"m3iqped4yi.fsf@localhost.localdomain","threadId":"16810","inReplyTo":"dac45060812200637m49c71aa5x3c25010fa00f4a63@mail.gmail.com","subject":"Re: Applying patches from a patch set","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2008-12-20T19:25:58Z","receivedAt":"2008-12-20T19:25:58Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"\"Mark Ryden\" <markryde@gmail.com> writes:\n\n>   I am subscribed to some linux kernel subsystem mailing list; in this\n> list there are sometimes patchsets with more than\n> 30-40 patches.\n\nI hope in proper patch series...\n\n> I am using gmail web interface client.\n\nBetter use some standalone mail program. Patch series should be send\nin thread, either as reply to the cover letter message, or threaded\neach being reply to previous patch... beside being numbered; IIRC\nGMail web interface doesn't have threading implemented...\n\n\n> In order to apply a patch set I copy and paste each patch from the\n> patchset into a file, and then apply that patch.\n\nYou use raw view, I assume? Otherwise you would fail afoul word\nwrapping and other whitespace mangling, at least...\n\n[...]\n\n> (I remember there was something called git apply-mbox in the past).\n\nYou can use \"git am\" for that, which is modern equivalent, and which\ncan do (almost) everything git-apply-mbox did.\n\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"},{"id":"98449","messageId":"7vabaqy5kx.fsf@gitster.siamese.dyndns.org","threadId":"16810","inReplyTo":"dac45060812200637m49c71aa5x3c25010fa00f4a63@mail.gmail.com","subject":"Re: Applying patches from a patch set","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-12-20T20:06:22Z","receivedAt":"2008-12-20T20:06:22Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Mark Ryden\" <markryde@gmail.com> writes:\n\n> Hello,\n>   I am subscribed to some linux kernel subsystem mailing list; in this\n> list there are sometimes patchsets with more than\n> 30-40 patches.\n> I am using gmail web interface client.\n>\n> In order to apply a patch set I copy and paste each patch from the\n> patchset into a file, and then apply that patch.\n> I assume that there is a better way.\n> Recently I encountered a fatal error when doing so (and I am not sure\n> what caused it).\n>\n> So my question is: does anyone know a more elegant way of applying a\n> large patchset ?\n> Maybe there is better mail client with which this process can be done easily ?\n\nFirst mistake(?) is you seem to be doing copy&paste from browser.  Don't.\nIt can easily damage whitespaces.  Find out how your webmail interface\nallows you to save selected messages in a mbox and let you download it.\n\nThen\n\n\t$ git am that-mbox-file\n"},{"id":"98481","messageId":"slrngkrv22.knd.sitaramc@sitaramc.homelinux.net","threadId":"16810","inReplyTo":"dac45060812200637m49c71aa5x3c25010fa00f4a63@mail.gmail.com","subject":"Re: Applying patches from a patch set","fromName":"Sitaram Chamarty","fromEmail":"sitaramc@gmail.com","sentAt":"2008-12-21T08:20:19Z","receivedAt":"2008-12-21T08:20:19Z","isPatch":false,"sender":{"key":"sitaramc@gmail.com","avatar":"https://avatars.githubusercontent.com/u/43316?v=4"},"body":"On 2008-12-20, Mark Ryden <markryde@gmail.com> wrote:\n\n>   I am subscribed to some linux kernel subsystem mailing list; in this\n> list there are sometimes patchsets with more than\n> 30-40 patches.\n> I am using gmail web interface client.\n\nsolution 1: see if that list is mirrored by gmane and use a\nnewsreader like slrn to access the list via gmane\n\nsolution 2: enable pop/imap access on your gmail account and\npull emails from there using whatever command line mail\nclient you like (like mutt maybe).  Not tested, but should\nwork.  For some definition of \"work\" (not sure how gmail's\n\"tags\" map to imap folders, which might trip you...)\n"},{"id":"98494","messageId":"dac45060812211034w38691627scf2a36ed814353f9@mail.gmail.com","threadId":"16810","inReplyTo":"slrngkrv22.knd.sitaramc@sitaramc.homelinux.net","subject":"Re: Applying patches from a patch set","fromName":"Mark Ryden","fromEmail":"markryde@gmail.com","sentAt":"2008-12-21T18:34:35Z","receivedAt":"2008-12-21T18:34:35Z","isPatch":false,"sender":{"key":"markryde@gmail.com","avatar":null},"body":"Hello,\n  Thanks a lot for your answer ! I was not aware of the option using a\nnewsreader like slrn to access the list via gmane.\n\nThe list I want to work with **does** have a gmane interface.\nIt is :\nhttp://thread.gmane.org/gmane.linux.kernel.wireless.general\n\nHowever, after I tried:\nsetenv NNTPSERVER gmane.linux.kernel.wireless.general\nand\nslrn -f /root/.jnewsrc --create\nI got:\nslrn 0.9.8.1pl2 [2005-02-17]\n\nReading startup file /etc/slrn.rc.\nUsing newsrc file /root/.jnewsrc for server gmane.linux.kernel.wireless.general.\nConnecting to host gmane.linux.kernel.wireless.general ...\nFailed to resolve gmane.linux.kernel.wireless.general\n\nRun-Time Error\nslrn fatal error:\nFailed to initialize server.\n\n\nI assume that this is some silly mistake I had done,.Any ideas?\n\nRgs,\nMark\n\n\n\n\nOn Sun, Dec 21, 2008 at 10:20 AM, Sitaram Chamarty <sitaramc@gmail.com> wrote:\n> On 2008-12-20, Mark Ryden <markryde@gmail.com> wrote:\n>\n>>   I am subscribed to some linux kernel subsystem mailing list; in this\n>> list there are sometimes patchsets with more than\n>> 30-40 patches.\n>> I am using gmail web interface client.\n>\n> solution 1: see if that list is mirrored by gmane and use a\n> newsreader like slrn to access the list via gmane\n>\n> solution 2: enable pop/imap access on your gmail account and\n> pull emails from there using whatever command line mail\n> client you like (like mutt maybe).  Not tested, but should\n> work.  For some definition of \"work\" (not sure how gmail's\n> \"tags\" map to imap folders, which might trip you...)\n>\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>\n"},{"id":"98495","messageId":"m3abapcqck.fsf@localhost.localdomain","threadId":"16810","inReplyTo":"dac45060812211034w38691627scf2a36ed814353f9@mail.gmail.com","subject":"Re: Applying patches from a patch set","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2008-12-21T18:53:21Z","receivedAt":"2008-12-21T18:53:21Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"\"Mark Ryden\" <markryde@gmail.com> writes:\n\n> However, after I tried:\n> setenv NNTPSERVER gmane.linux.kernel.wireless.general\n\nThis is not a _NNTP server_; this is _news group_ name.\nYou should use news.gmane.org for NNTPSERVER.\n\n> I assume that this is some silly mistake I had done,.Any ideas?\n\nsetenv NNTPSERVER news.gmane.org\n\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"},{"id":"98599","messageId":"dac45060812230325if44148qa166e5fb01d33245@mail.gmail.com","threadId":"16810","inReplyTo":"7vabaqy5kx.fsf@gitster.siamese.dyndns.org","subject":"Re: Applying patches from a patch set","fromName":"Mark Ryden","fromEmail":"markryde@gmail.com","sentAt":"2008-12-23T11:25:17Z","receivedAt":"2008-12-23T11:25:17Z","isPatch":false,"sender":{"key":"markryde@gmail.com","avatar":null},"body":"Hello,\n  I tried usuing slrn with mutt; mutt seems to me better.\nI saved 15 git patches from one patch set into a mailbox\nusing mutt.\nNow I tried:\ngit am maibox\nand got this error:\n\nPatch is empty.  Was it split wrong?\n\nThis error occurred after \"git am maibox\" applied the first 6 patches\nin this patch set.\n\nlooking at that seventh patch shows that it seems to be perfectly\nok.\n\nAny ideas what can be wrong here?\nRegards,\nMark\n\n\nOn Sat, Dec 20, 2008 at 10:06 PM, Junio C Hamano <gitster@pobox.com> wrote:\n> \"Mark Ryden\" <markryde@gmail.com> writes:\n>\n>> Hello,\n>>   I am subscribed to some linux kernel subsystem mailing list; in this\n>> list there are sometimes patchsets with more than\n>> 30-40 patches.\n>> I am using gmail web interface client.\n>>\n>> In order to apply a patch set I copy and paste each patch from the\n>> patchset into a file, and then apply that patch.\n>> I assume that there is a better way.\n>> Recently I encountered a fatal error when doing so (and I am not sure\n>> what caused it).\n>>\n>> So my question is: does anyone know a more elegant way of applying a\n>> large patchset ?\n>> Maybe there is better mail client with which this process can be done easily ?\n>\n> First mistake(?) is you seem to be doing copy&paste from browser.  Don't.\n> It can easily damage whitespaces.  Find out how your webmail interface\n> allows you to save selected messages in a mbox and let you download it.\n>\n> Then\n>\n>        $ git am that-mbox-file\n>\n>\n>\n>\n>\n"}]}