[8/8] SubmittingPatches: use `--pretty=summary`
diff mbox series

Message ID 0b861a47890a3d1e193d520f4678d017aac87207.1572897736.git.liu.denton@gmail.com
State New
Headers show
  • learn the "summary" pretty format
Related show

Commit Message

Denton Liu Nov. 4, 2019, 8:04 p.m. UTC
Since Git was taught the `--pretty=summary` option, it is no longer
necessary to manually specify the format string to get the commit
summary. Teach users to use the new option while keeping the old
invocation around in case they have an older version of Git.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
 Documentation/SubmittingPatches | 6 ++++++
 1 file changed, 6 insertions(+)

diff mbox series

diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches
index 1a60cc1329..6969ecca45 100644
--- a/Documentation/SubmittingPatches
+++ b/Documentation/SubmittingPatches
@@ -153,6 +153,12 @@  with the subject enclosed in a pair of double-quotes, like this:
 The "Copy commit summary" command of gitk can be used to obtain this
 format, or this invocation of `git show`:
+	git show -s --pretty=summary <commit>
+or, on an older version of Git without support for --pretty=summary:
 	git show -s --date=short --pretty='format:%h ("%s", %ad)' <commit>