summaryrefslogtreecommitdiff
path: root/pod/perlhack.pod
diff options
context:
space:
mode:
authorSmylers <Smylers@stripey.com>2013-09-04 11:58:34 +0100
committerJames E Keenan <jkeenan@cpan.org>2013-09-05 03:17:19 +0200
commite99cf3f0a442462e8a131dbeff46317a9a28f1c4 (patch)
treea3dd658ae293b52e58291c1042c4be2a04b14c7c /pod/perlhack.pod
parent694349577716ee90e0a5a6cd44bad1dd7f4ce32f (diff)
downloadperl-e99cf3f0a442462e8a131dbeff46317a9a28f1c4.tar.gz
Resetting a check out in Super Quick Patch Guide
Add advice so that somebody wishing to submit a second patch doesn't need to throw away their perl check-out and start again. Not knowing the 'git clean' step caught me out, and meant perl wouldn't build for me. Nicholas helped me out. Adding this to the guide will hopefully save Nicholas from having to repeat that for others (especially since others may not be fortunate enough to have Nicholas handily seated next to them at the point they encounter it). (The non-building was because some things in the repository had been re-arranged since my previous patch (several months earlier), and the latest build was getting confused by some files left over from a pre-re-arragned build.) The 'git clean' step will also remove the first 0001-*.patch file, avoiding the problem of there being two files matching that glob when attaching the second patch. Committer: Removed trailing whitespace. For: RT #119599
Diffstat (limited to 'pod/perlhack.pod')
-rw-r--r--pod/perlhack.pod11
1 files changed, 11 insertions, 0 deletions
diff --git a/pod/perlhack.pod b/pod/perlhack.pod
index 74d728e2dc..b2cbcf1d4a 100644
--- a/pod/perlhack.pod
+++ b/pod/perlhack.pod
@@ -80,6 +80,17 @@ will submit your patch via email.
The porters appreciate the time you spent helping to make Perl better.
Thank you!
+=item * Next time
+
+The next time you wish to make a patch, you need to start from the
+latest perl in a pristine state. Check you don't have any local changes
+or added files in your perl check-out which you wish to keep, then run
+these commands:
+
+ % git pull
+ % git reset --hard origin/blead
+ % git clean -dxf
+
=back
=head1 BUG REPORTING