summaryrefslogtreecommitdiff
path: root/Documentation/SubmittingPatches
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2017-03-21 14:21:54 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-03-26 15:59:08 -0700
commit48a96972fd4421e1136b50d6650a2b9d45947754 (patch)
tree37ffbeb73d2945972b66e302467862ba060cedab /Documentation/SubmittingPatches
parentdoc/SubmittingPatches: clarify the casing convention for "area: change..." (diff)
downloadtgif-48a96972fd4421e1136b50d6650a2b9d45947754.tar.xz
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>
Diffstat (limited to 'Documentation/SubmittingPatches')
-rw-r--r--Documentation/SubmittingPatches3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches
index 9ef624ce38..bc8ad00473 100644
--- a/Documentation/SubmittingPatches
+++ b/Documentation/SubmittingPatches
@@ -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.