doc/SubmittingPatches: show how to get a CLI commit summary
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 21 Mar 2017 14:21:54 +0000 (14:21 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 26 Mar 2017 22:59:08 +0000 (15:59 -0700)
Amend the section which describes how to get a commit summary to show
how do to that with "git show", currently the documentation only shows
how to do that with gitk.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/SubmittingPatches
index 9ef624ce38b298d6fd01cee6ff88c40de7ac00b4..bc8ad00473b566261e384f24a552f9b2cd97a3f4 100644 (file)
@@ -134,8 +134,9 @@ with the subject enclosed in a pair of double-quotes, like this:
     noticed that ...
 
 The "Copy commit summary" command of gitk can be used to obtain this
-format.
+format, or this invocation of "git show":
 
+    git show -s --date=short --pretty='format:%h ("%s", %ad)' <commit>
 
 (3) Generate your patch using Git tools out of your commits.