This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Docs: perlhack: Use correct shell code and better git/shell constructs
authorMichael Witten <mfwitten@gmail.com>
Mon, 16 May 2011 01:57:37 +0000 (01:57 +0000)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 19 May 2011 19:44:16 +0000 (12:44 -0700)
The example commands for using `git format-patch' and `perlbug' have
been streamlined, and (most importantly) single quotes have been
replaced with double quotes for constructing the argument to `-s'.

Signed-off-by: Michael Witten <mfwitten@gmail.com>
pod/perlhack.pod

index 95eccda..5e85f4b 100644 (file)
@@ -59,8 +59,8 @@ via email.
 Assuming your patch consists of a single git commit, you can send it to
 perlbug with this command line:
 
-  % git format-patch HEAD^1..HEAD
-  % perlbug -s '[PATCH] `git log --pretty=format:%s HEAD^1..HEAD`' -f 0001-*.patch
+  % git format-patch -1
+  % perlbug -s "[PATCH] $(git log -1 --format=%s HEAD)" -f 0001-*.patch
 
 The perlbug program will ask you a few questions about your email
 address and the patch you're submitting. Once you've answered them you