docs: Tell people how to easily generate the Fixes lines.
authorEric Anholt <eric@anholt.net>
Fri, 12 Jul 2019 20:36:51 +0000 (13:36 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 15 Jul 2019 23:29:31 +0000 (16:29 -0700)
v2: Include '-s' to suppress the diff.
v3: use the git config command (Ken), use &lt; (Eric)

Reviewed-by: Matt Turner <mattst88@gmail.com> (v1)
Acked-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
docs/submittingpatches.html

index 31c00db4f92fe06edb862cfa7ba985d74381278a..d8b9fc3b643d295af0675c04de38d474ae56f2a1 100644 (file)
@@ -85,6 +85,7 @@ noted in the patch comment.  For example:
 <pre>
    Fixes: d7b3707c612 "util/disk_cache: use stat() to check if entry is a directory"
 </pre>
+<li>You can produce those fixes lines by running <pre>git config --global pretty.fixes 'Fixes: %h ("%s")'</pre> once and then using <pre>git show -s --pretty=fixes &lt;sha1&gt;</pre>
 <li>If there have been several revisions to a patch during the review
 process, they should be noted such as in this example:
 <pre>