Re: Applying patches from gmane can be dangerous.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jari Aalto <jari.aalto@xxxxxxxxx> 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 <Enter> 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 <bdowning-oU/tDdhfGLReoWH0uzbU5w@xxxxxxxxxxxxxxxx>

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 <Enter>

	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.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux