summaryrefslogtreecommitdiffstats
path: root/Documentation/git-format-patch.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-11-03 05:45:55 +0100
committerJunio C Hamano <gitster@pobox.com>2008-11-03 05:45:55 +0100
commit16088d8870b7da6d4dd280be2d1728dd3be346b5 (patch)
tree8d74f2788dd2d6bc98d806024ed5e756ca1b953b /Documentation/git-format-patch.txt
parentAdd reference for status letters in documentation. (diff)
downloadgit-16088d8870b7da6d4dd280be2d1728dd3be346b5.tar.xz
git-16088d8870b7da6d4dd280be2d1728dd3be346b5.zip
format-patch documentation: mention the special case of showing a single commit
Even long timers seem to have missed that "format-patch -1 $commit" is a much simpler and more obvious way to say "format-patch $commit^..$commit" from the current documentation (and an example "format-patch -3 $commit" to get three patches). Add an explicit instruction in a much earlier part of the documentation to make it easier to find. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r--Documentation/git-format-patch.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/git-format-patch.txt b/Documentation/git-format-patch.txt
index adb4ea7b1b..7426109f62 100644
--- a/Documentation/git-format-patch.txt
+++ b/Documentation/git-format-patch.txt
@@ -46,7 +46,8 @@ applies to that command line and you do not get "everything
since the beginning of the time". If you want to format
everything since project inception to one commit, say "git
format-patch \--root <commit>" to make it clear that it is the
-latter case.
+latter case. If you want to format a single commit, you can do
+this with "git format-patch -1 <commit>".
By default, each output file is numbered sequentially from 1, and uses the
first line of the commit message (massaged for pathname safety) as