From: Junio C Hamano Date: Thu, 07 Feb 2008 08:21:36 GMT Subject: Re: Applying patches from gmane can be dangerous. Message-ID: <7vsl05p46n.fsf@gitster.siamese.dyndns.org> In-Reply-To: Jari Aalto writes: > FYI, > > Emacs Gnus + news.gmane.org gives access to raw articles with single > command. Suppose cursor is at thread start "!" > > ! R. [ 40: Junio C Hamano ] Applying patches from gmane can be dangerous. > R. [ 19: Nicolas Pitre ] > > > Pressing "C-u g" will display the unmodified article as seen by mail > transport. Running git's apply command can be automated pretty easily > from there. I do not think Gnus demiming (that C-u g helps us with) is not an issue. Have you tried to look at the article in question? Inside your Gnus + news.gmane.org, try typing this: j 7 2 6 9 9 C-u g The last two keystrokes are your "C-u g". And look at the second line in the buffer, that says: From: Brian Downing and weep X-<. Then scroll down to find Signed-off-by: lines that are similarly mangled, and weep more. Maybe you run a much newer Gnus, and Lars taught "C-u g" to unmangle them. After all, gmane and Gnus are both his creations, so it _is_ possible. But somehow I doubt it. If there weren't gmane address mangling, a quickest way to apply a gmane patch to commit is: C-u g | g i t a m - 3 - s For Gnus uninitiated, it reads: show as raw as opposed to demimed (C-u g), pipe the article to the shell command (|) that is "git am -3 -s". But I usually work in batches, so I first C-o (write to file) the articles to a separate mbox, review and _edit_ them as needed before running "git am". And C-o does not suffer from Gnus demiming, so C-u g is not useful in my workflow.