doc/SubmittingPatches: show how to get a CLI commit summary
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>
Ævar Arnfjörð Bjarmason committed
Mar 21, 2017 at 14:21 UTC
48a96972fd4421e1136b50d6650a2b9d45947754
1 file changed
+2
-1
Documentation/SubmittingPatches
+2
-1
@@ -134,8 +134,9 @@ with the subject enclosed in a pair of double-quotes, like this:
134
noticed that ...
135
136
The "Copy commit summary" command of gitk can be used to obtain this
137
-format.
137
+format, or this invocation of "git show":
138
139
+ git show -s --date=short --pretty='format:%h ("%s", %ad)' <commit>
140
141
(3) Generate your patch using Git tools out of your commits.
142