This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlgit.pod: how to unescape 'git am' From lines
authorDavid Mitchell <davem@iabyn.com>
Thu, 8 Oct 2015 15:07:06 +0000 (16:07 +0100)
committerDavid Mitchell <davem@iabyn.com>
Thu, 8 Oct 2015 15:19:39 +0000 (16:19 +0100)
Due to Reasons, some UNIX mail systems escape any leading 'From ' lines
with a '>'. Explain how to un-escape them.

pod/perlgit.pod

index 3eb0dbb..f5d4fec 100644 (file)
@@ -616,6 +616,11 @@ C<git am>:
   % git am 0001-Rename-Leon-Brocard-to-Orange-Brocard.patch
   Applying Rename Leon Brocard to Orange Brocard
 
+Note that some UNIX mail systems can mess with text attachments containing
+'From '. This will fix them up:
+
+  % perl -pi -e's/^>From /From /' 0001-Rename-Leon-Brocard-to-Orange-Brocard.patch
+
 If just a raw diff is provided, it is also possible use this two-step
 process: