Skip to content

Commit 48a9697

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2ee0056 commit 48a9697

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/SubmittingPatches

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,9 @@ with the subject enclosed in a pair of double-quotes, like this:
134134
noticed that ...
135135

136136
The "Copy commit summary" command of gitk can be used to obtain this
137-
format.
137+
format, or this invocation of "git show":
138138

139+
git show -s --date=short --pretty='format:%h ("%s", %ad)' <commit>
139140

140141
(3) Generate your patch using Git tools out of your commits.
141142

0 commit comments

Comments
 (0)