summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Pit <perl@profvince.com>2008-12-22 21:15:14 +0100
committerVincent Pit <perl@profvince.com>2008-12-22 21:15:14 +0100
commit09645c26bf855249cfe60e690510ba26afeaf40c (patch)
tree64f22f24e4d874d6643d22dc78824c1e239486c2
parent3b46207fed7bf69caa32c27c04bd239cfb64cb53 (diff)
downloadperl-09645c26bf855249cfe60e690510ba26afeaf40c.tar.gz
Note the --author option of git commit, and therefore explain how to apply raw diffs.
-rw-r--r--pod/perlrepository.pod7
1 files changed, 6 insertions, 1 deletions
diff --git a/pod/perlrepository.pod b/pod/perlrepository.pod
index 34d464e0af..80e2bf8519 100644
--- a/pod/perlrepository.pod
+++ b/pod/perlrepository.pod
@@ -304,11 +304,16 @@ switch into it:
% git checkout -b experimental
-Now we should apply the patch:
+Patches that were formatted by C<git format-patch> are applied with C<git am>:
% git am 0001-Rename-Leon-Brocard-to-Orange-Brocard.patch
Applying Rename Leon Brocard to Orange Brocard
+If just a raw diff is provided, it is also possible use this two-step process:
+
+ % git apply bugfix.diff
+ % git commit -am "Some fixing" --author="That Guy <that.guy@internets.com>"
+
Now we can inspect the change:
% git log