Documentation: format-patch
Add examples section and talk about using this to cherry-pick commits. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Nov 5, 2005 at 02:55 UTC
28ffb8987af97e28accc707c724207fbd745b027
1 file changed
+20
Documentation/git-format-patch.txt
+20
@@ -59,6 +59,26 @@ OPTIONS
59
standard output, instead of saving them into a file per
60
patch and implies --mbox.
61
62
+
63
+EXAMPLES
64
+--------
65
+
66
+git-format-patch -k --stdout R1..R2 | git-am -3 -k::
67
+ Extract commits between revisions R1 and R2, and apply
68
+ them on top of the current branch using `git-am` to
69
+ cherry-pick them.
70
+
71
+git-format-patch origin::
72
+ Extract commits the current branch accumulated since it
73
+ pulled from origin the last time in a patch form for
74
+ e-mail submission.
75
+
76
+
77
+See Also
78
+--------
79
+gitlink:git-am[1], gitlink:git-send-email
80
+
81
+
82
Author
83
------
84
Written by Junio C Hamano <junkio@cox.net>