From 82dc168f51e35fe878d9d8eec79169dea82a7e34 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 12 Jul 2019 13:36:51 -0700 Subject: [PATCH] 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 (v1) Acked-by: Eric Engestrom Reviewed-by: Kenneth Graunke --- 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:
    Fixes: d7b3707c612 "util/disk_cache: use stat() to check if entry is a directory"
 
+
  • You can produce those fixes lines by running
    git config --global pretty.fixes 'Fixes: %h ("%s")'
    once and then using
    git show -s --pretty=fixes <sha1>
  • If there have been several revisions to a patch during the review process, they should be noted such as in this example:
    -- 
    2.30.2