Mesa (master): docs: Tell people how to easily generate the Fixes lines.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 15 23:30:03 UTC 2019
Module: Mesa
Branch: master
Commit: 82dc168f51e35fe878d9d8eec79169dea82a7e34
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=82dc168f51e35fe878d9d8eec79169dea82a7e34
Author: Eric Anholt <eric at anholt.net>
Date: Fri Jul 12 13:36:51 2019 -0700
docs: Tell people how to easily generate the Fixes lines.
v2: Include '-s' to suppress the diff.
v3: use the git config command (Ken), use < (Eric)
Reviewed-by: Matt Turner <mattst88 at gmail.com> (v1)
Acked-by: Eric Engestrom <eric at engestrom.ch>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
docs/submittingpatches.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/submittingpatches.html b/docs/submittingpatches.html
index 31c00db4f92..d8b9fc3b643 100644
--- a/docs/submittingpatches.html
+++ b/docs/submittingpatches.html
@@ -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 <sha1></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>
More information about the mesa-commit
mailing list