Skip to content

Commit

Permalink
Documentation: format-patch
Browse files Browse the repository at this point in the history
Add examples section and talk about using this to cherry-pick
commits.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Nov 5, 2005
1 parent bd7c8aa commit 28ffb89
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Documentation/git-format-patch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,26 @@ OPTIONS
standard output, instead of saving them into a file per
patch and implies --mbox.


EXAMPLES
--------

git-format-patch -k --stdout R1..R2 | git-am -3 -k::
Extract commits between revisions R1 and R2, and apply
them on top of the current branch using `git-am` to
cherry-pick them.

git-format-patch origin::
Extract commits the current branch accumulated since it
pulled from origin the last time in a patch form for
e-mail submission.


See Also
--------
gitlink:git-am[1], gitlink:git-send-email


Author
------
Written by Junio C Hamano <junkio@cox.net>
Expand Down

0 comments on commit 28ffb89

Please sign in to comment.